Skip to main content
Glama

Autonomous Goal-to-MCP Tool Sequence Router & Cost Planner

route_mcp_workflow_plan
Read-onlyIdempotent

Maps a natural-language agent goal to an ordered sequence of Diogenes MCP tool calls with exact endpoint paths, JSON-RPC 2.0 payloads, and cumulative satoshi cost estimates. Use when an autonomous agent needs to plan which MCP tools to chain together to solve a multi-step objective within a satoshi budget; for compiling a static XML system prompt rather than an executable MCP tool call sequence, use compile_xml_agent_prompt instead. Read-only edge call (32 KB, 60 RPM): accepts 'objective' ('budget_preference' defaults to 'lowest_sats_deterministic'), uses '?demo=true' or L402 (20 sats); HTTP 400 if invalid.

Input Schema

NameRequiredDescriptionDefault
objectiveYesNatural-language description of the workflow goal to route across MCP tools.
budget_preferenceNoCost vs depth routing trade-off; defaults to 'lowest_sats_deterministic' when omitted.

Output Schema

NameRequiredDescriptionDefault
objectiveYesEvaluated workflow objective.
estimated_total_satsYesCumulative satoshi cost of the planned tool sequence.
recommended_sequenceYesOrdered tool execution steps with tool name, endpoint, and cost_sats.
deterministic_confidenceYesRouter confidence score from 0.80 to 1.0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, and the description goes well beyond them: response size (32 KB), rate limit (60 RPM), pricing mechanics ('?demo=true' or L402 at 20 sats), and the failure mode (HTTP 400 if invalid). For a payable edge call these are exactly the facts an agent needs before invoking.

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?

Front-loaded with purpose before routing guidance, then operational facts, with no filler sentences. It is dense—several parentheticals are packed into a single clause near the end—which costs some scannability, but every clause carries distinct information.

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?

An output schema exists, so return values need not be explained; the description instead covers the things the schema cannot: payment/auth mode, rate limit, payload size, error behavior and the budget default. Nothing an agent needs to call this correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100% and both parameters, including the enum values, are already documented. The description only restates the 'objective' input and the 'lowest_sats_deterministic' default that the schema's own description carries, so it adds little semantic value here. Baseline 3 applies.

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?

States a specific verb-and-resource pair: maps a natural-language goal to an ordered sequence of MCP tool calls, naming the exact artifacts produced (endpoint paths, JSON-RPC 2.0 payloads, cumulative satoshi cost). It also distinguishes itself from the nearest sibling, compile_xml_agent_prompt, in the same sentence, so an agent can route without opening either schema.

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?

Gives an explicit trigger ('Use when an autonomous agent needs to plan which MCP tools to chain together to solve a multi-step objective within a satoshi budget') and an explicit exclusion with a named alternative ('for compiling a static XML system prompt ... use compile_xml_agent_prompt instead'). The when/when-not/alternative triple is complete.

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.