Skip to main content
Glama

Agent402.Tools: pay-per-call web tools

Decide: tool plan for a task

decide.plan
Read-onlyIdempotent

[wallet-required, $0.005/call] Describe a job and get a call-ready plan: which tools, across this catalog and outside x402 sellers with a recently verified 402, solve it end to end, in what order, with fallbacks, input params that validate against each tool's schema, and cost/latency estimates. Priced by depth: quick (one best tool), plan (steps + fallbacks), full (plan + params + compiled prompt). The fee comes back as a credit toward running the plan with POST /api/decide/execute. The ranking formula has no first-party term; every tool carries firstParty. Uncovered needs are listed in gaps. Returns { decisionId, task, depth, plan, estimatedCostUsd, estimatedCostViaAgent402Usd, estimatedLatencyMs, confidence }. This hosted connector holds no wallet: pay it here over MPP, or run npx agent402-mcp with a funded wallet (AGENT_KEY) or a prepaid credits key already issued (AGENT402_CREDITS_KEY), or any x402 client.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesWhat the agent needs done (max 2000 chars)
depthNoquick | plan (default) | full
constraintsNomaxBudgetUsd, maxLatencyMs, rails [x402|mpp], chains [CAIP-2 or namespace], excludeSellers [host], requireDeterministic

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
gapsNo
planNo
taskNo
depthNo
cachedNo
partialNo
rankingNo
priceUsdNo
confidenceNo
decisionIdNo
neutralityNo
estimatedCostUsdNo
estimatedLatencyMsNo
estimatedCostViaAgent402UsdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, openWorld, non-destructive), but the description adds substantial behavioral context beyond them: payment rails, credit redemption, the ranking formula's lack of a first-party term, the firstParty flag on every tool, gaps for uncovered needs, and the full return shape. This is rich disclosure for a hosted paid planning tool.

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?

The description is front-loaded with the critical payment and purpose information, then flows into pricing, credit mechanics, ranking transparency, and return fields. It is dense but every sentence carries actionable information; the single-paragraph format is long but not wasteful.

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

Completeness5/5

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

Given a complex paid planning tool with an output schema, nested constraints, and open-world scope, the description covers payment, credit redemption, ranking methodology, gap handling, and depth tiers. An agent has everything needed to decide whether and how to call it.

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 the baseline is 3, but the description adds real meaning for the depth enum: quick (one best tool), plan (steps + fallbacks), full (plan + params + compiled prompt). It does not elaborate on constraints beyond the schema, but the depth semantics are a meaningful addition.

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

Purpose5/5

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

The description states a specific verb and resource: 'Describe a job and get a call-ready plan: which tools... solve it end to end.' It clearly positions this as a planning tool that spans this catalog and external x402 sellers, distinguishing it from catalog.find/catalog.search and naming decide.execute as the downstream execution step.

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

Usage Guidelines5/5

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

It explicitly notes wallet requirements, the $0.005/call fee, depth-based pricing, and that the fee credits toward running the plan with decide.execute. It also names concrete alternatives for payment and execution (MPP, npx agent402-mcp, prepaid credits key, any x402 client), giving the agent clear routing options.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.