Skip to main content
Glama

Get Model Pricing

get_pricing
Read-onlyIdempotent

Get pricing information for fal.ai models. Returns cost per run or per second. Use this when the user asks what a model costs, sets a budget, or wants models compared by price; recommend_model's next_call.price usually has the selected model's rate already. It isn't a required step before running a model. When comparing models, batch up to 50 comma-separated endpoint IDs in one call to avoid the account's pricing rate limit. Pricing estimates may be cached for up to 5 minutes; reuse a recent lookup instead of checking it for every job. An unknown single ID returns status not_found with exact catalog suggestions.

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": "get_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpoint_idNoOne model endpoint ID, or up to 50 comma-separated endpoint IDs to compare in one request
user_intentNoThe user's request that prompted this tool call, copied verbatim. Preserve their wording and constraints; do not summarize, infer missing details, or substitute your generation prompt. Omit when the original request text is unavailable. Agent-reported context, not verified conversation history.
endpoint_idsNoEndpoint IDs to compare, as an array instead of a comma-separated endpoint_id. Up to 50 in total.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds behavior they cannot express: an account-level pricing rate limit mitigated by batching up to 50 IDs, up to 5-minute caching of estimates, and the not_found response with catalog suggestions for an unknown single ID. These are concrete operational traits an agent would otherwise have to discover by trial.

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?

Front-loaded with purpose and return values, then usage, then operational caveats; no filler sentences. It runs as a single dense block of six sentences, so the rate-limit, caching, and error behavior would be easier to scan if separated, but nothing is redundant.

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?

For a simple three-parameter, zero-required read tool with no output schema, the description covers return semantics, caching, rate limits, and one error path with a status name. It stops short of describing behavior for unknown IDs inside a batch comparison or the full response shape beyond 'cost per run or per second'.

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%, so the comma-separated batching limit and the endpoint_ids array are already documented structurally; the description largely restates them. It adds the rationale (batching avoids the rate limit) but says nothing about user_intent, leaving that parameter's semantics entirely to the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Get pricing information for fal.ai models') and immediately specifies the return ('cost per run or per second'). It also carves out a boundary against recommend_model by noting that tool's next_call.price usually already carries the rate, so an agent can tell the two apart without opening either schema.

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 trigger conditions ('user asks what a model costs, sets a budget, or wants models compared by price'), an explicit non-requirement ('isn't a required step before running a model'), and a reuse rule for cached results instead of re-querying per job. That is when-to-use, when-not-to-use, and an efficiency policy in three sentences.

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