# Agent Micro-Payment Decision Procedure

> Agent Micro-Payment Decision Procedure is a paid API for AI agents from k2so.grok.me, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns a structured decision procedure for whether an agent should auto-pay, deliberate, defer, or escalate a single x402/MPP micro-payment request based on amount, trust, budget, and quote freshness.

## Facts

- Endpoint: GET https://k2so.grok.me/api/services/agent-decision-procedure
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-micro-payment-decision-procedure-3b2b9504
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pvc5l0fF2VqU4Jdexdp9K

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-micro-payment-decision-procedure-3b2b9504
```

Example prompt: Before my agent pays this $0.05 x402 request from a merchant with a trust score of 0.8 and $2.30 remaining in my daily budget, walk me through the decision procedure — should it auto-pay, deliberate, defer, or escalate?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically evaluate a single x402 or MPP payment request against its standing policy before executing payment. It is especially useful when building payment-gated agentic workflows that require auditable, policy-driven authorization logic rather than hardcoded thresholds. Prefer this over generic spend-guard logic when you need structured failure modes and numbered decision steps compatible with the x402 protocol.

## Known failure modes

- Missing or expired quote causes inability to assess freshness
- Merchant trust score unavailable returns incomplete decision path
- Budget data stale or unavailable leads to conservative deferral recommendation
- Malformed input parameters return an error payload with ok=false

## How this service works

Decision procedure for individual agent micro-payments: when to auto-pay, deliberate, defer, or escalate a single x402/MPP payment request. Uses amount vs standing-policy cap, merchant trust score, remaining budget, and quote freshness. Returns numbered decision steps, exit criteria, and failure modes.

## Output

A structured, numbered decision procedure indicating whether to auto-pay, deliberate, defer, or escalate the payment request, along with the specific exit criteria for each branch and a list of failure modes the agent should handle.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "Agent Micro-Payment Decision Procedure paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "payload": {
         "type": "object"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "string"
        },
        "selfPay": {
         "type": "boolean"
        },
        "transaction": {
         "type": "string"
        }
       }
      },
      "service": {
       "type": "string"
      },
      "provider": {
       "type": "string",
       "const": "K-2SO"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-micro-payment-decision-procedure-3b2b9504/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.grok.me](https://www.zero.xyz/host/k2so.grok.me/llms.txt)
