Skip to main content
Glama

smart_router

Read-only

Optimal Execution Smart Router. Computes optimal gas and slippage routing paths for Base AI agents and automated executors. Cost: 0.001 USDC on Base & Solana (100% gasless).

Input Schema

NameRequiredDescriptionDefault
chainNobase
amountNoTrade amount
tokenInNoInput token address or symbol
tokenOutNoOutput token address or symbol
slippage_bpsNo

Output Schema

NameRequiredDescriptionDefault
limitsNo
statusYes
serviceYes
endpointYes
optimal_routesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / chain
      Added value: +{
      +  "default": "base",
      +  "enum": [
      +    "base",
      +    "solana"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / slippage_bps
      Added value: +{
      +  "default": 50,
      +  "maximum": 1000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedOutput schema / properties / expected_slippage_bps
      Removed value: -{
      -  "type": "integer"
      -}
    • removedOutput schema / properties / gas_estimate_gwei
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / latency_ms
      Removed value: -{
      -  "type": "integer"
      -}
    • addedOutput schema / properties / limits
      Added value: +{
      +  "type": "array"
      +}
    • removedOutput schema / properties / optimal_dex
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / optimal_routes
      Added value: +{
      +  "type": "array"
      +}
    • removedOutput schema / properties / verified_by
      Removed value: -{
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "endpoint": {
      +      "type": "string"
      +    },
      +    "expected_slippage_bps": {
      +      "type": "integer"
      +    },
      +    "gas_estimate_gwei": {
      +      "type": "number"
      +    },
      +    "latency_ms": {
      +      "type": "integer"
      +    },
      +    "optimal_dex": {
      +      "type": "string"
      +    },
      +    "service": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "verified_by": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "service",
      +    "endpoint"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, and the description is consistent with a computation/quote tool. It adds useful non-obvious context about cost and gasless operation, but it does not explain payment/auth mechanics, rate limits, or whether the output is strictly a route/quote beyond what the readOnly annotation implies.

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 three short sentences and front-loads the core function before the cost note. 'Optimal Execution Smart Router' slightly repeats 'optimal' from the following sentence, but the overall text is efficient and easy to scan.

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?

An output schema exists and the annotations cover the safety profile, so return values and read-only behavior do not need heavy explanation. Still, for a five-parameter paid routing tool, the description omits required-input expectations, prerequisites, and alternatives, leaving meaningful gaps for an agent choosing how to invoke it.

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 only 60%, and the description adds no meaning about amount units, token address/symbol formats, slippage_bps, or chain defaults. The schema itself documents the three main token/amount fields and slippage bounds, but the description does not compensate for the remaining gaps or clarify optionality despite zero required parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Computes optimal gas and slippage routing paths' for Base AI agents and automated executors. It is clear what the tool does, but it does not explicitly differentiate itself from siblings such as arbitrage_scan or ai_intel.

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

Usage Guidelines3/5

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

The intended audience and cost imply usage for optimal execution routing. However, there is no explicit when-to-use guidance, no when-not guidance, no prerequisites, and no named alternatives among ai_intel, arbitrage_scan, and contract_audit.

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.