Skip to main content
Glama

Quote a chat request across markets

carpe_quote
Read-onlyIdempotent

Estimate the input-token cost of a text request before running it, comparing TEE-only /v1 billing against best-price /router market picks with availability and TEE status, at no charge.

Instructions

Price a text request BEFORE running it, on both surfaces: what /v1 (Carpe alone, in its TEE) would bill, and what /router (best price) would pick among the markets — with each market's price, availability and whether it is a TEE. Give messages (or a prompt) so the input size is estimated, or input_tokens directly. Costs nothing.

Input Schema

NameRequiredDescriptionDefault
modelNoModel id (default deepseek-v4-flash).
promptNoAlternative to messages for a single user prompt.
privacyNoRouter privacy filter: true = TEE markets only; "private" = no-retention markets for private models.
messagesNoOpenAI-style messages, used only to estimate input tokens.
max_tokensNoExpected output tokens (default 1000).
input_tokensNoOverride the input-token estimate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish a safe, idempotent, closed-world read, so the bar is lower; the description still adds real value by disclosing that the result compares two surfaces and enumerates each market's price, availability, and TEE status. It could have said more about how the input-size estimate is derived or what happens when a model is unknown.

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?

Two compact sentences with zero filler, and the core promise ('Price... BEFORE running it') is front-loaded before the optional inputs are described. The /v1 and /router jargon is dense but each term is immediately glossed.

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, the description carries the burden of describing the response, and it does outline the comparison plus per-market price, availability, and TEE flag. Edge cases such as unknown models or empty estimates are not covered, which keeps it just short of complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond per-field docs by explaining the relationship between the inputs: messages or prompt drive the input-token estimate, while input_tokens overrides it outright. That mutual-exclusivity guidance is genuinely additive rather than a restatement of 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?

States a specific verb and resource ('Price a text request') and scopes it precisely: it reports what /v1 alone would bill and what /router would pick across markets. That is clearly distinguishable from siblings like carpe_chat (which executes) and carpe_pricing/carpe_markets (which expose static price/market data).

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 'BEFORE running it' tells the agent this is the pre-flight step ahead of carpe_chat, and 'Costs nothing' removes any hesitation about calling it. It stops short of explicitly naming the alternatives to use when the user only wants static pricing or market lists.

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