Skip to main content
Glama
machine-utility-foundry

machine-utility-foundry

plan_safe_x402_failover_route

Read-onlyIdempotent

Plan safe x402 failover routes by ranking candidates for a need, live-probing endpoints in parallel, and returning signed primary and fallback execution tickets.

Instructions

[x402 Paid: $0.015 Base USDC -- FREE if 0 matches] Parallel-quarantined x402 failover route planner: ranks top wash-filtered candidates for need, live-probes all candidates in parallel to eliminate dead/bait-and-switch endpoints, and returns an Ed25519-signed primary + fallback execution ticket.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "need": "<need>"
    },
    "name": "plan_safe_x402_failover_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
needYesPlain-language capability or data need (e.g. 'weather forecast', 'crypto yields', 'erc20 balance').
methodNoOptional HTTP method filter.
maxRoutesNoMaximum number of live-verified failover routes to return (1..3, default 3).
excludeSelfNoExclude any endpoint operated by Machine Utility Foundry (default false).
maxPriceUsdNoOptional maximum per-call USD price cap enforced against live 402 challenges.
allowCautionFallbackNoInclude CAUTION endpoints as lower-priority fallbacks behind SAFE_TO_PAY (default true; DO_NOT_PAY is strictly excluded).
requireOfficialBaseUsdcNoRequire live 402 challenges to settle in official Base Mainnet USDC (default true).

Output Schema

NameRequiredDescriptionDefault
needYes
chargedYes
primaryUrlYes
ledgerProofYes
plannedAtUtcYes
quarantinedOutYes
readyToExecuteYes
liveProbedCountYes
routePlanSha256Yes
executableRoutesYes
neutralityPolicyYes
cryptographicAttestationYes
totalCatalogCandidatesEvaluatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint), but the description adds real behavioral context the annotations do not: live parallel probing of every candidate, elimination of dead or bait-and-switch endpoints, and the signed-ticket return artifact. The pricing line also discloses a $0.015 Base USDC charge that is waived when there are zero matches, which is behaviorally important. It does not mention probe latency or rate limits, keeping it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense sentence with the price/charge condition front-loaded and the three pipeline stages in execution order, so there is little waste. It is heavily jargon-laden ('parallel-quarantined', 'wash-filtered'), which costs some immediate readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return values, and it still characterizes the returned artifact as an Ed25519-signed primary plus fallback ticket. Annotations plus the fully documented 7-parameter schema cover the rest. The only gap is the absence of guidance on choosing this planner over the sibling recommendation tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a baseline of 3 applies, but the description adds meaning on top of it by explaining that candidates are wash-filtered and live-probed and by tying the Base USDC settlement requirement to real 402 challenges. The SAFE_TO_PAY / CAUTION / DO_NOT_PAY tier vocabulary appears only in a parameter description, not the main text, so the semantic framing is only partly reinforced.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb chain and resource: it 'ranks top wash-filtered candidates for `need`', 'live-probes all candidates in parallel', and 'returns an Ed25519-signed primary + fallback execution ticket'. That is far more specific than a restated name. It stops short of a 5 because it never contrasts itself with the closest siblings (e.g. recommend_x402_api, preview_x402_recommendation), so the agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the mechanics: use it when you need a verified primary plus fallback route for a stated capability, and the zero-charge-if-empty note hints at when it is cheap to call. However there is no explicit when-to-use/when-not-to-use guidance and no named alternative for the simpler recommendation/preview cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.