Skip to main content
Glama

get_price

Read-only

Get the exact cost for a single model call, including optional inputs like duration or text, to know your spend upfront. Free.

Instructions

Quote the exact cost of one call for a model (optionally with input that affects price, e.g. video duration or TTS character count). Free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputNoOptional model input that affects price (e.g. { duration: 8 } or { text: "..." }).
modelYesModel id from list_models, e.g. "nano-banana-2" or "veo-3.1-fast".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitYes
modelYes
unitsYes
costUsdYes
costMicroUsdYes
Behavior4/5

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

Annotations already declare readOnlyHint, and the description adds useful behavioral details: the tool is 'Free', returns an 'exact cost', and its output depends on optional input like video duration or TTS character count. This enriches the safety profile without contradicting annotations.

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 two sentences with no wasted words. It front-loads the core purpose and immediately follows with the key nuance about input-dependent pricing and the 'Free' attribute.

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 the tool's simplicity, an output schema exists, and parameters are well-described, the description covers the essential context: cost per call, optional input effects, and no charge. It doesn't explain edge cases like invalid model IDs, but that's not critical for this straightforward tool.

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?

Though schema coverage is 100%, the description adds valuable examples for the 'input' parameter (e.g., duration, text) and clarifies that the model id comes from list_models. This helps the agent understand how to construct pricing queries beyond the schema alone.

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 clearly states the tool's function: 'Quote the exact cost of one call for a model' with a specific verb and resource. It also distinguishes itself from sibling tools like list_models or generate by focusing on pricing, including optional input that affects cost.

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 description provides clear context on when to use the tool: to get pricing for a single call, optionally with input that affects price. It doesn't explicitly name alternatives or exclusions, but the context implies it's the pricing companion to generate and list_models.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gliana-Labs/gliana-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server