Skip to main content
Glama

Execute the Selected Task Under an Explicit Budget

authorize_and_execute_selected_task
Idempotent

After find_or_quote_task selects a service, submit its input, an idempotency key and an explicit maximum atomic-USDC budget. The first call returns payment requirements without execution; an x402-aware client may obtain local approval and retry this identical MCP call with payment metadata. PHION never receives a private key and never expands the stated budget.

Input Schema

NameRequiredDescriptionDefault
inputYes
dry_runNo
objectiveYes
target_serviceYes
idempotency_keyYes
max_budget_atomicYes
acceptance_criteriaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and idempotentHint=true, so the description's value-add is the two-phase payment handshake ('first call returns payment requirements without execution') and the trust guarantees (no private key held, budget never expanded beyond max_budget_atomic). It does not explain what dry_run does or whether a retry with mismatched payment metadata is rejected, which are the remaining behavioral unknowns for a paid mutation.

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

Conciseness5/5

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

Three tight sentences: the trigger condition comes first, then the required payload, then the payment flow and trust constraints. No filler and no restatement of the tool name.

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

Completeness3/5

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

This is a complex, open-world, 7-parameter tool with nested objects and no output schema, so the description should do more than describe the first response. It explains the payment-requirement return but leaves dry_run, acceptance_criteria semantics, and the shape of the final execution result undocumented.

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 0%, so the description must carry all parameter meaning, yet it only covers input, idempotency_key and max_budget_atomic, and refers to target_service only obliquely ('its input'). Three parameters with real ambiguity, dry_run, objective and acceptance_criteria (a nested object array of up to 32 pointer assertions), are never mentioned, though the critical billing and dedupe fields are covered.

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?

Names a specific action (execute a service under an explicit budget) and anchors it to the sibling that must precede it (find_or_quote_task). An agent can distinguish this from find_best_service_for_task and verify_or_explain_result without opening the schema.

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

Usage Guidelines4/5

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

States the prerequisite clearly: it is called only 'After find_or_quote_task selects a service.' It also describes the two-step retry pattern. It does not, however, say when to prefer find_best_service_for_task or when to follow up with verify_or_explain_result, so routing among the remaining siblings is left implicit.

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.

Resources