Skip to main content
Glama

Get the price of a call

quote
Read-only

Get the price of a tool call before spending: returns cost, free-call coverage, wallet balance, and spending limit, plus a quote_id that locks the price for 30 minutes.

Instructions

Before spending on the person's behalf: use this when the person asks what a call would cost, or before running a paid tool. Send the tool name and its arguments. Returns the price, whether today's free calls cover it, the wallet balance, how much this key can still spend without asking, and a quote_id that holds the price for 30 minutes. Pass quote_id with the call to pay the quoted price.

Input Schema

NameRequiredDescriptionDefault
toolYesThe tool you plan to call, e.g. get_pre_brief.
argumentsNoThe arguments you plan to send with it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.9

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly/openWorld, but the description adds substantive behavior: it returns price, free-call coverage, wallet balance, remaining key spend, and a quote_id valid for 30 minutes. It also discloses the price-hold window and how the quote is redeemed, which the annotations cannot convey.

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 critical precondition ('Before spending on the person's behalf') is front-loaded and each sentence adds value. The return-value list is dense but purposeful; only minor tightening is possible.

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?

There is no output schema, and the description fully enumerates the return payload plus the quote_id lifecycle, which is exactly what an agent needs to act on the result. It is complete for this tool's complexity.

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% and both 'tool' and 'arguments' are already documented. The description restates their role ('Send the tool name and its arguments') but adds no format or edge-case guidance beyond the schema, so the baseline 3 applies.

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?

States a specific verb+resource ('Get the price of a call') and frames the purpose in terms of the user's need and the agent's spend decision. An agent can distinguish it from sibling get_* data tools because it is explicitly about pre-costing a paid call.

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?

Gives explicit when-to-use conditions ('when the person asks what a call would cost, or before running a paid tool') and a follow-up rule ('Pass quote_id with the call to pay the quoted price'). Nothing is left to inference for the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.