Skip to main content
Glama

Route Provider

route_provider
Read-onlyIdempotent

Rank up to 1,000 caller-supplied providers by quality, success rate, price and latency, returning one selection plus at most three alternates. Candidates marked unhealthy or priced above requirements.maxPrice are excluded; quality defaults to successRate and an empty eligible set returns selected=null with a reason. Use this free read-only calculation only with comparable metrics you already hold because it neither discovers providers nor verifies measurements. A successful selection includes an optional buyer-controlled verify_execution handoff; it does not charge or initiate payment.

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": {
      "providers": "<providers>"
    },
    "name": "route_provider"
  }
}

Input Schema

NameRequiredDescriptionDefault
providersYesUp to 1,000 provider candidates to rank. An empty list returns no eligible provider; unhealthy candidates are excluded.
requirementsNoRouting constraints. maxPrice is the currently enforced constraint.

Output Schema

NameRequiredDescriptionDefault
reasonYesHuman-readable explanation of the routing result.
nextStepNoOptional buyer-controlled path from a useful free result to ARN's proven paid execution-verification capability. Presence does not charge or initiate payment.
selectedYesHighest-ranked eligible provider, including its computed score, or null.
alternatesYesUp to three next-ranked eligible providers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / nextStep / properties / professionalHelp
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "automaticOutreach": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "automaticPurchase": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "buyerApprovalRequired": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "cloudflareSpecialty": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "display": {
      +          "type": "string"
      +        },
      +        "fit": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "display",
      +        "url",
      +        "fit"
      +      ],
      +      "type": "object"
      +    },
      +    "general": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "display": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "display",
      +        "url"
      +      ],
      +      "type": "object"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "type": {
      +      "const": "optional_request_only_service",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "reason",
      +    "general",
      +    "cloudflareSpecialty",
      +    "automaticPurchase",
      +    "automaticOutreach",
      +    "buyerApprovalRequired"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / nextStep / required
      Previous value: -[
      -  "type",
      -  "sourceTool",
      -  "recommendedTool",
      -  "reason",
      -  "evidenceBoundary",
      -  "guide",
      -  "machineGuide",
      -  "payPerCall",
      -  "starterPrepaid30Day",
      -  "prepaid30Day",
      -  "buyerApprovalRequired",
      -  "automaticPurchase",
      -  "discoveryCharges"
      -]New value: +[
      +  "type",
      +  "sourceTool",
      +  "recommendedTool",
      +  "reason",
      +  "evidenceBoundary",
      +  "guide",
      +  "machineGuide",
      +  "payPerCall",
      +  "starterPrepaid30Day",
      +  "prepaid30Day",
      +  "buyerApprovalRequired",
      +  "automaticPurchase",
      +  "discoveryCharges",
      +  "professionalHelp"
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties / nextStep
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Optional buyer-controlled path from a useful free result to ARN's proven paid execution-verification capability. Presence does not charge or initiate payment.",
      +  "properties": {
      +    "automaticPurchase": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "buyerApprovalRequired": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "discoveryCharges": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "evidenceBoundary": {
      +      "type": "string"
      +    },
      +    "guide": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "machineGuide": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "payPerCall": {
      +      "type": "object"
      +    },
      +    "prepaid30Day": {
      +      "type": "object"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "recommendedTool": {
      +      "const": "verify_execution",
      +      "type": "string"
      +    },
      +    "sourceTool": {
      +      "enum": [
      +        "score_opportunity",
      +        "route_provider"
      +      ],
      +      "type": "string"
      +    },
      +    "starterPrepaid30Day": {
      +      "type": "object"
      +    },
      +    "type": {
      +      "const": "optional_paid_verification",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "sourceTool",
      +    "recommendedTool",
      +    "reason",
      +    "evidenceBoundary",
      +    "guide",
      +    "machineGuide",
      +    "payPerCall",
      +    "starterPrepaid30Day",
      +    "prepaid30Day",
      +    "buyerApprovalRequired",
      +    "automaticPurchase",
      +    "discoveryCharges"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / providers / description
      Previous value: -"Provider candidates to rank. Unhealthy candidates are excluded."New value: +"Up to 1,000 provider candidates to rank. An empty list returns no eligible provider; unhealthy candidates are excluded."
    • addedInput schema / properties / providers / maxItems
      Added value: +1000
  4. Changed8 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / description
      Added value: +"Rank a caller-supplied provider set. ARN does not discover providers or independently verify these metrics in this free call."
    • addedInput schema / properties / providers / description
      Added value: +"Provider candidates to rank. Unhealthy candidates are excluded."
    • addedInput schema / properties / providers / items
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Caller-supplied provider candidate and measured/estimated routing attributes.",
      +  "properties": {
      +    "healthy": {
      +      "default": true,
      +      "description": "Set false to exclude this provider from routing.",
      +      "type": "boolean"
      +    },
      +    "id": {
      +      "description": "Optional stable provider identifier.",
      +      "type": "string"
      +    },
      +    "latencyMs": {
      +      "default": 1000,
      +      "description": "Comparable latency in milliseconds.",
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "name": {
      +      "description": "Optional provider display name.",
      +      "type": "string"
      +    },
      +    "price": {
      +      "default": 0,
      +      "description": "Comparable per-execution price used by the ranking formula.",
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "quality": {
      +      "description": "Observed or estimated quality score. Defaults to successRate.",
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "successRate": {
      +      "default": 0.5,
      +      "description": "Observed or estimated success rate.",
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / requirements / additionalProperties
      Added value: +true
    • addedInput schema / properties / requirements / description
      Added value: +"Routing constraints. maxPrice is the currently enforced constraint."
    • addedInput schema / properties / requirements / properties
      Added value: +{
      +  "maxPrice": {
      +    "description": "Optional maximum provider price. Providers above it are excluded.",
      +    "minimum": 0,
      +    "type": "number"
      +  }
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "alternates": {
      +      "description": "Up to three next-ranked eligible providers.",
      +      "items": {
      +        "type": "object"
      +      },
      +      "maxItems": 3,
      +      "type": "array"
      +    },
      +    "reason": {
      +      "description": "Human-readable explanation of the routing result.",
      +      "type": "string"
      +    },
      +    "selected": {
      +      "description": "Highest-ranked eligible provider, including its computed score, or null.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "selected",
      +    "alternates",
      +    "reason"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description still adds substantive behavior: exclusion rules, quality defaulting to successRate, and the empty-eligible-set outcome of selected=null with a reason. It also disclaims side effects with 'does not charge or initiate payment' and frames verify_execution as buyer-controlled and optional.

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?

Four sentences, front-loaded with the verb, scope, and return shape before constraints and caveats. Every sentence carries information, though the second sentence packs exclusions, defaults, and the null-result case densely enough that it reads as compressed spec prose.

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

Completeness5/5

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

An output schema exists, yet the description still tells the agent what a successful and a failed selection look like (selection plus alternates, or selected=null with a reason). For a deterministic, side-effect-free calculation with only two parameters, nothing needed to invoke it correctly is missing.

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 coverage is 100%, so the exclusion semantics of maxPrice and the successRate default for quality are already documented in the schema, and the 1,000 cap is in maxItems. The description restates these at a high level without adding weighting-formula detail or guidance on how quality, price, and latency are combined, which is the one thing an agent could not learn from the schema.

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?

Opens with a specific verb and resource ('Rank up to 1,000 caller-supplied providers') and immediately states the output shape: one selection plus at most three alternates. It also separates itself from siblings by noting it neither discovers providers nor verifies measurements, and names verify_execution as the adjacent handoff.

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?

Gives an explicit precondition ('only with comparable metrics you already hold') and an explicit exclusion case (unhealthy or above maxPrice). It does not name a sibling for the discovery/verification path, only alludes to it via 'does not verify measurements', so routing to alternatives is inferential rather than explicit.

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