Skip to main content
Glama

quote

Price check before paying: worst-case USD cost and exact x402 amount for a model + max_tokens (+ optional messages or input_tokens), with up to 3 cheaper trending alternatives. No key needed, never charges.

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": {
      "model": "<model>"
    },
    "name": "quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
messagesNo
max_tokensNo
input_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/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 by disclosing that no key is needed, no charge occurs, and the response includes worst-case cost, exact x402 amount, and up to three trending alternatives. It omits edge cases, rate limits, and pricing-source behavior, but covers the key safety traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and packs useful detail into two tight sentences. Every clause earns its place by covering scope, return values, alternatives, and the no-charge/no-key guarantee.

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?

Given no output schema, the description sufficiently explains the return values, and with no annotations it also communicates the important non-mutating safety profile. It remains slightly incomplete on parameter semantics and exact response structure, but is complete enough for an agent to call correctly.

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%, so the description must compensate, and it does name all four parameters and mark messages/input_tokens as optional. However, it does not clarify that max_tokens is optional in the schema, nor does it explain precedence between messages and input_tokens or model naming conventions.

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 states a specific operation and scope: a non-charging price check that returns worst-case USD cost, exact x402 amount, and cheaper alternatives for a model/token request. This is clearly distinguishable from sibling tools like chat_completion and get_balance.

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?

The phrase 'Price check before paying' provides clear context for when to use it, and 'never charges' reinforces that it is a preflight estimate. It does not explicitly name alternatives such as chat_completion or list_models, so the routing guidance is strong but not exhaustive.

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