{"uid":"cap_rnD1vg7HJVhCP_tpbQgs-","slug":"agent-trapped-funds-mobility-decision-procedure-8dd12818","name":"Agent Trapped-Funds Mobility Decision Procedure","description":"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","url":"https://k2so.wrong.systems/api/services/agent-trapped-funds-mobility-how-an-autonomous-a","method":"GET","headers":{},"bodySchema":{"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"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__6E8hA5-uU9XEsgFrEJa7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Consolidating fragmented agent wallet balances","prompt":"My agent has $5 on a checkout provider, $18 in a Base USDC wallet, and $3 sitting on a card issuer, and I need to pay a $20 obligation — run the mobility decision procedure and tell me which funds are trapped, which I can spend directly, and rank the cheapest paths to cover the payment."},{"title":"Evaluating bridge vs swap for idle USDC","prompt":"I have idle USDC on two different chains and a pending spend obligation on Base — use the trapped-funds procedure to compare bridging versus swapping costs and tell me the optimal route given current fees and settlement latency."},{"title":"Deciding whether to top up card or reroute through a pay rail","prompt":"I'm an autonomous agent with a $30 card balance that can't be withdrawn and a pay rail with a $50 minimum withdrawal — should I top up the card or reroute through the rail to cover my next $25 obligation? Run the mobility decision procedure and give me the ranked options by all-in cost."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:27:17.574Z","isFirstParty":false}