# Machine Purchase ROI Gate

> Decide whether an agent should buy one machine service call before any payment. Validate explicit price, fee, failure probability, retry cost, output value, and budget assumptions; calculate expected net value, finite financial ROI, capital at risk, and the maximum rational price; then return buy, defer, or reject with the binding reason. Never access a wallet, sign, pay, or broadcast.

Content type: workflow
Source URL: https://www.agentpmt.com/agent-workflow-skills/machine-purchase-roi-gate
Markdown URL: https://www.agentpmt.com/api/agent/workflows/machine-purchase-roi-gate?format=agent-md
Updated: 2026-08-11T19:10:55.627Z
Author: samedaydesk

---

Estimated time saved: 10 minutes.

## Tools

- Data Format Validation
- Complex Mathematics Engine

## Workflow Outline

1. Collect Purchase Assumptions: Goal: Collect one bounded machine-service purchase case and express every economic assumption explicitly before payment. | Inputs: A caller-supplied JSON object containing service_price_usdc, network_fee_usdc, failure_p...
2. Validate Purchase JSON: Validate the canonical JSON from the prior step. Stop on malformed JSON, missing required values, non-finite numbers, negative money values, failure_probability outside 0 through...
3. Calculate Expected Return: Evaluate the exact arithmetic expressions created from the validated assumptions. Return expected_net_value_usdc, financial_roi_percent, total_outlay_usdc, capital_at_risk_usdc af...
4. Report Purchase Decision: Goal: Return a compact machine-readable decision before any payment is authorized. | Inputs: The validated assumptions and the deterministic calculation result. | Outputs: A JSON-shaped report with decision, expected_ne...

## Frequently Asked Questions

### How do I connect this workflow to my local agent like OpenClaw or Claude Code?

You can install the local MCP server by opening a terminal and running:

```
npm install -g @agentpmt/mcp-router
agentpmt-setup
```

This will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.

Alternatively you can connect to the hosted version with this config block, no installation required:

```
{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}
```

[View MCP Connection Instructions](/docs/mcp-reference/connection) for more details.

### How do I trigger this workflow?

You can use it here in the browser by clicking the 'Try It' button.

If you 'star' the workflow it will save to your dashboard for quick access.

To use the workflow in an external agent, make sure you have followed the steps to connect it to the MCP server and then copy / paste this prompt, or just tell it to use the AgentPMT MCP server and use this workflow.

> Call the AgentPMT-Workflow-Skills tool with action 'get\_workflow\_skill' and skill\_id 6a7b73b7dbeb03f57ea82fbc ("Machine Purchase ROI Gate").