Skip to main content
Glama

DropEngine x402 Agent Services

route_tool

Paid Agent Tool Router ($0.002 USDC on Base). Finds and ranks machine-payable MCP services and x402 HTTP endpoints before your agent chooses or pays a provider. Uses structured capability matching, hard constraints, price, observed latency/reliability, and cold-start trust confidence; no LLM call is required. Returns the best tool, confidence, reason, price, relevant workflow, next-best option, and a context-aware recommended_next when useful. This is recommendation metadata only: it never invokes the selected provider or makes a second payment. Without X402_BAZAAR_DISCOVERY_URLS, results come only from this platform's local service registry and are marked degraded.

Agent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNo
capabilityYes
constraintsNo
preferencesNo
completed_toolsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
whyNo
metaNo
nextNo
errorNo
queryYes
cachedYes
reasonNo
resultNo
statusNo
paymentNo
successYes
agent_uxNo
degradedYes
best_toolNo
capabilityYes
checked_atYes
confidenceNo
match_foundYes
recommendedYes
alternativesYes
optimize_forYes
next_best_toolNo
routing_reasonYes
relevance_scoreNo
candidates_foundYes
recommended_nextNo
registry_sourcesYes
confidence_semanticsNo
recommended_workflowNo
expected_total_cost_usdNo
candidates_after_filtersYes
routing_data_age_secondsYes
provider_availability_sourceNo
provider_availability_observed_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / recommended_next / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "availability": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "availability_observation": {
      -        "type": "string"
      -      },
      -      "condition": {
      -        "type": "string"
      -      },
      -      "price": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "reason": {
      -        "type": "string"
      -      },
      -      "tool": {
      -        "type": "string"
      -      },
      -      "workflow_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "reason",
      -      "price"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "availability": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "availability_observation": {
      +        "type": "string"
      +      },
      +      "condition": {
      +        "type": "string"
      +      },
      +      "price": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "reason": {
      +        "type": "string"
      +      },
      +      "recommendation_id": {
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "tool": {
      +        "type": "string"
      +      },
      +      "workflow_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "reason",
      +      "price"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed14 schema fields changed
    • addedInput schema / properties / completed_tools
      Added value: +{
      +  "items": {
      +    "maxLength": 128,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 30,
      +  "type": "array"
      +}
    • addedOutput schema / properties / agent_ux
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "error": {
      +      "anyOf": [
      +        {},
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "meta": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "next": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "payment": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "execution_status": {
      +          "enum": [
      +            "not_started",
      +            "succeeded",
      +            "failed",
      +            "unknown"
      +          ],
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "not_required",
      +            "required",
      +            "settled",
      +            "failed",
      +            "unknown"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "execution_status"
      +      ],
      +      "type": "object"
      +    },
      +    "result": {},
      +    "status": {
      +      "enum": [
      +        "succeeded",
      +        "failed",
      +        "partial",
      +        "outcome_unknown"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "result",
      +    "error",
      +    "meta",
      +    "payment",
      +    "next"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / confidence_semantics
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "anyOf": [
      +    {},
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / meta
      Added value: +{
      +  "additionalProperties": {},
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / next
      Added value: +{
      +  "items": {},
      +  "type": "array"
      +}
    • addedOutput schema / properties / payment
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "execution_status": {
      +      "enum": [
      +        "not_started",
      +        "succeeded",
      +        "failed",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "status": {
      +      "enum": [
      +        "not_required",
      +        "required",
      +        "settled",
      +        "failed",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "execution_status"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / provider_availability_observed_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / provider_availability_source
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / recommended_next / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "price": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "reason": {
      -        "type": "string"
      -      },
      -      "tool": {
      -        "type": "string"
      -      },
      -      "workflow_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "reason",
      -      "price"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "availability": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "availability_observation": {
      +        "type": "string"
      +      },
      +      "condition": {
      +        "type": "string"
      +      },
      +      "price": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "reason": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "type": "string"
      +      },
      +      "workflow_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "reason",
      +      "price"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / recommended_workflow / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "estimated_total_price_usd": {
      -        "type": "number"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "estimated_total_price_usd"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "estimated_cost": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "basis": {
      +            "type": "string"
      +          },
      +          "conditional_call_count": {
      +            "type": "number"
      +          },
      +          "currency": {
      +            "type": "string"
      +          },
      +          "expected": {
      +            "type": "number"
      +          },
      +          "max": {
      +            "type": "number"
      +          },
      +          "min": {
      +            "type": "number"
      +          },
      +          "optional_call_count": {
      +            "type": "number"
      +          },
      +          "required_call_count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "min",
      +          "expected",
      +          "max",
      +          "currency",
      +          "basis",
      +          "required_call_count",
      +          "conditional_call_count",
      +          "optional_call_count"
      +        ],
      +        "type": "object"
      +      },
      +      "estimated_total_price_usd": {
      +        "type": "number"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "next_required_step": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "condition": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "tool": {
      +                "type": "string"
      +              },
      +              "type": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "tool",
      +              "type",
      +              "condition"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "state_mode": {
      +        "enum": [
      +          "client_managed"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "estimated_total_price_usd"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / relevance_score
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / result
      Added value: +{}
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "succeeded",
      +    "failed",
      +    "partial",
      +    "outcome_unknown"
      +  ],
      +  "type": "string"
      +}
  3. Changed5 schema fields changed
    • removedOutput schema / properties / recommended_next / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / recommended_next / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "price": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "reason": {
      +        "type": "string"
      +      },
      +      "tool": {
      +        "type": "string"
      +      },
      +      "workflow_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "reason",
      +      "price"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / recommended_next / properties
      Removed value: -{
      -  "price": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "reason": {
      -    "type": "string"
      -  },
      -  "tool": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / recommended_next / required
      Removed value: -[
      -  "tool",
      -  "reason",
      -  "price"
      -]
    • removedOutput schema / properties / recommended_next / type
      Removed value: -"object"
  4. Changed7 schema fields changed
    • addedOutput schema / properties / best_tool
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / confidence
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / expected_total_cost_usd
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / next_best_tool
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / recommended_next
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "price": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "tool",
      +    "reason",
      +    "price"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / recommended_workflow
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "estimated_total_price_usd": {
      +          "type": "number"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name",
      +        "estimated_total_price_usd"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / why
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  5. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so well: it discloses the paid cost ($0.002 USDC on Base), states that it never invokes the selected provider or makes a second payment, notes it is recommendation metadata only, and explains degraded results when X402_BAZAAR_DISCOVERY_URLS is absent. It also clarifies that no LLM call is required and that workflows are stateless recipes.

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 long but front-loaded and well-structured, opening with the core purpose and cost. Most sentences earn their place by clarifying alternatives or behavior, though the detailed Agent Action Gate limitation list is somewhat tangential for this specific tool.

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?

It is largely complete for a complex paid routing tool: purpose, cost, side effects, degraded mode, output fields, and alternatives are covered, and an output schema exists so return values need not be explained. The main gap is parameter-level semantics for the five inputs, which matters given 0% schema description coverage.

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

Parameters2/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 compensate, but it does not describe the five input parameters directly. It references capability matching, hard constraints, price, latency/reliability, but omits what 'query', 'completed_tools', and 'preferences.optimize_for' do and never explains allowed values or formats.

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 opens with a specific verb and resource: 'Paid Agent Tool Router... Finds and ranks machine-payable MCP services and x402 HTTP endpoints before your agent chooses or pays a provider.' It distinguishes itself from siblings through explicit entry-point guidance (free /api/discover, direct tool, Agent Action Gate, workflow recipes), so an agent can identify its unique role without opening other schemas.

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 provides explicit when-to-use and when-not-to-use guidance: 'risky external action → use Agent Action Gate... unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool.' This directly routes the agent among alternatives.

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