Skip to main content
Glama

Pre-flight: cheapest listed model for your needs (paid: 0.003 RLUSD / 0.003 USDC on XRPL / 0.003 USDC on Base / 0.003 RLUSD on Base via x402)

decide_cheapest_model
Read-only

Paid: 0.003 RLUSD or 0.003 USDC per call via x402 on XRPL mainnet (xrpl:0), or 0.003 USDC on Base (eip155:8453). Pay per call, solves one question: Which listed models.dev prices meet these filters, lowest first? Raw lowest and next-vendor prices with reasons, exclusions, and status-page readings. Without payment this returns isError with the x402 PaymentRequired object (fresh invoiceId); retry with the signed payload in _meta["x402/payment"] or the payment_signature argument. Unpaid calls cost nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "decide_cheapest_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
vendorNoComma list of allowed vendors
capabilityNoComma list, all required: reasoning, coding, vision-input, image-output, audio, free-tier, tools, structured-output
min_contextNoMinimum context length in tokens
include_freeNoAllow zero-price / :free entries (default false)
exclude_vendorNoComma list of vendors to skip
max_input_per_1mNoMax input price, USD per 1M tokens
max_job_cost_usdNoMax cost of 10k input + 1k output tokens, USD
max_output_per_1mNoMax output price, USD per 1M tokens
payment_signatureNoOptional. Base64 x402 PAYMENT-SIGNATURE value (signed RLUSD or USDC PaymentPayload) for hosts that cannot set _meta["x402/payment"]. Omit on the first call to receive the payment requirements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare it a non-destructive, non-idempotent, open-world read; the description goes well beyond that by disclosing the x402 payment requirement, both accepted rails (xrpl:0, eip155:8453), the exact unpaid-call behavior (isError plus a PaymentRequired object with a fresh invoiceId), and the retry path via _meta["x402/payment"] or payment_signature. 'Unpaid calls cost nothing' is exactly the kind of safety-of-retry fact an agent needs and could not derive from annotations.

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 payment/error/retry mechanics are front-loaded and each sentence carries information. It is still a dense run-on paragraph, and the price list in the description partially duplicates the title, which slightly dilutes the front-loading of the actual purpose.

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?

With no output schema and nine optional filters, the description covers payment flow, error semantics, retry mechanics, and the qualitative return contents, which is most of what an agent needs. It does not say what happens when zero filters are supplied (does it rank the entire catalog?) or whether result sets are capped or paginated.

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 100%, so the nine filter parameters are already documented in the schema itself. The description adds real semantics only for payment_signature (argue it is the fallback for hosts that cannot set _meta) and otherwise just refers to 'these filters' generically, so baseline 3 applies.

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 names a specific operation on a specific resource: 'Which listed models.dev prices meet these filters, lowest first?', plus the shape of what comes back ('raw lowest and next-vendor prices with reasons, exclusions, and status-page readings'). It is clear what the tool does, but it never distinguishes itself from plausible siblings such as get_price_index or get_model_report.

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?

Usage is implied by the framing 'solves one question', which tells the agent this is a filtered price-ranking/selection call. There is no explicit when-to-use vs. when-not, and no pointer to an alternative tool for unfiltered or single-model lookups, so the agent must infer the boundary.

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