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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "capability": "<capability>"
    },
    "name": "route_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
capabilityYes
constraintsNo
preferencesNo
completed_toolsNo

Output 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
recommended_action_gateNo
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
    • addedOutput schema / properties / recommended_action_gate
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "price_usd": {
      +          "type": "number"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "tool": {
      +          "const": "preflight_action",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "tool",
      +        "reason",
      +        "price_usd"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. 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"
      +  }
      +]
  3. 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"
      +}
  4. 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"
  5. 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"
      +}
  6. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the $0.002 USDC cost on Base, that it is recommendation metadata only and never invokes a provider or triggers a second payment, that degraded results occur without X402_BAZAAR_DISCOVERY_URLS, and that workflows are stateless and not bundle-charged. It is slightly less explicit about failure behavior or what degraded mode means for confidence values.

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 first paragraph front-loads purpose, cost, and the key non-side-effect guarantee, and the second is a compact routing decision tree. It is dense and long, with a trailing exclusion list for Action Gate that adds some bulk, but every block carries routing or safety information.

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?

An output schema exists, so listing return fields is supplementary rather than necessary, and the description covers payment, safety, degraded mode, and workflow semantics well. What is missing is guidance on the two undocumented parameters (preferences.optimize_for, completed_tools) for a tool whose schema has no field descriptions at all.

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% across five parameters (including nested constraints and preferences), so the description should compensate more. It implies that 'hard constraints, price, observed latency/reliability' map to the constraints object and mentions 'capability' matching, but leaves the preferences.optimize_for enum and completed_tools entirely unexplained, so meaningful gaps remain.

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 — 'Finds and ranks machine-payable MCP services and x402 HTTP endpoints' — and states the ranking factors (capability match, constraints, price, latency/reliability, trust confidence). It also explicitly distinguishes itself from the direct tool call and the free /api/discover endpoint, so an agent can identify the tool's role 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 Guidelines5/5

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

The 'Agent entry points' paragraph gives an explicit decision tree: risky external action → Action Gate, unclear capability → free /api/discover, constrained comparison → paid route_tool, known single capability → direct tool, multi-step → workflow recipe. Both when-to-use and when-not-to-use are covered, with named 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