# Agent Trapped-Funds Mobility Decision Procedure

> Agent Trapped-Funds Mobility Decision Procedure is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status down (last checked 2026-09-15).

Returns a ranked decision procedure for an AI agent to resolve fragmented balances across payment locations (wallets, card issuers, checkout providers, pay rails) into spendable form for pending obligations.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/agent-trapped-funds-mobility-how-an-autonomous-a
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-trapped-funds-mobility-decision-procedure-8dd12818
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rnD1vg7HJVhCP_tpbQgs-

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-trapped-funds-mobility-decision-procedure-8dd12818
```

Example prompt: I have USDC split between a checkout provider, a Base wallet, and a card issuer, and I need to cover a $12 payment obligation — can you run the trapped-funds mobility decision procedure to tell me which balances are spendable in place, which are withdrawable, and what the cheapest ranked path is to unlock any trapped funds?

## When to prefer this

Use this endpoint when an autonomous agent needs to make an informed, cost-ranked decision about how to mobilize fragmented balances across heterogeneous payment locations before executing a spend. It is especially useful when fees, minimums, and settlement latency differ across locations and the agent must pick the cheapest path. Prefer this over manual calculation when custody risk and idle-fund trigger conditions also need to be factored in.

## Known failure modes

- Missing or malformed balance ledger input returns an error
- Insufficient payment (x402 payment required, $0.002 USDC) returns 402 Payment Required
- Unknown or unsupported topic override returns a fallback or error
- LLM/reasoning generation failure may return a service error or degraded response
- Network timeout on the backend reasoning service

## How this service works

Decision procedure for an agent whose value is fragmented across systems. Inputs: per-location balance ledger (checkout provider, wallet USDC, card issuer, pay rail), pending spend obligations, per-location withdrawal/swap/bridge fees and minimums, settlement latency, custody risk. Output per obligation: location status (spendable-in-place, withdrawable, trapped), ranked mobility path by all-in cost (direct spend, withdrawal, swap, bridge, card top-up, rail re-route), trigger conditions (idle

## Output

A structured decision brief with per-location status labels (spendable-in-place, withdrawable, or trapped), a ranked list of mobility paths (direct spend, withdrawal, swap, bridge, card top-up, rail re-route) sorted by all-in cost, and trigger conditions for when idle funds should be moved. The response includes a prose brief for agents and metadata such as model used, topic, and generation timestamp.

## 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)"
      },
      "topic": {
       "type": "string",
       "description": "Optional topic override for the decision procedure"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "Agent trapped-funds mobility 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"
        },
        "brief": {
         "type": "string",
         "description": "Decision procedure prose for agents"
        },
        "model": {
         "type": "string"
        },
        "topic": {
         "type": "string"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "procedure": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "generationSource": {
         "enum": [
          "llm",
          "reasoning",
          "deterministic"
         ],
         "type": "string"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "string"
      
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "brief": "plain prose decision procedure (120+ words)",
   "model": "deepseek/deepseek-v4-flash-0731",
   "topic": "string topic",
   "service": "agent-trapped-funds-mobility-how-an-autonomous-a",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "agent-trapped-funds-mobility-how-an-autonomous-a",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-trapped-funds-mobility-decision-procedure-8dd12818/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
