Autonomous Goal-to-MCP Tool Sequence Router & Cost Planner
route_mcp_workflow_planMaps 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
| Name | Required | Description | Default |
|---|---|---|---|
| objective | Yes | Natural-language description of the workflow goal to route across MCP tools. | |
| budget_preference | No | Cost vs depth routing trade-off; defaults to 'lowest_sats_deterministic' when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objective | Yes | Evaluated workflow objective. | |
| estimated_total_sats | Yes | Cumulative satoshi cost of the planned tool sequence. | |
| recommended_sequence | Yes | Ordered tool execution steps with tool name, endpoint, and cost_sats. | |
| deterministic_confidence | Yes | Router confidence score from 0.80 to 1.0. |