Skip to main content
Glama

get_cost_estimate

Get an exact satoshi cost quote for AI services like text-to-speech, translation, and transcription. No payment required, just pass service parameters to receive amount, breakdown, and currency.

Instructions

Get an exact sat cost quote for a service BEFORE creating a payment. Useful for budget-aware agents to price-check before committing. No payment required, no side effects. Pass service=text-to-speech&chars=1500, service=translate&chars=800, service=transcribe-audio&minutes=5, etc. Returns { amount_sats, breakdown, currency }. Omit params to see the full catalog of supported services.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceNoService id (e.g. 'text-to-speech', 'translate', 'image', 'video', 'transcribe-audio', 'ocr'). Omit to list all services.
modelNoOptional model id for services with multiple tiers
charsNoCharacter count — required for TTS and translate
minutesNoAudio length — required for transcribe-audio
secondsNoVideo duration — required for video / video-from-image
pagesNoPage count — for OCR (default 1)
Behavior5/5

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

No annotations provided, so description carries full burden. It states 'No payment required, no side effects' and 'Returns { amount_sats, breakdown, currency },' fully disclosing behavior and return value.

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?

Five sentences, each serving a purpose: purpose, use case, examples, return value, and omitting behavior. No redundancy, fully front-loaded.

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?

Despite no output schema, the description covers return format, side-effect safety, and parameter usage patterns. For a query-only tool, this is 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 description coverage is 100%, but description adds value by explaining parameter combinations (e.g., 'chars for TTS and translate') and the 'omit to list all' pattern, going beyond 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?

The description clearly states 'Get an exact sat cost quote for a service BEFORE creating a payment.' It specifies the verb, resource, and purpose, distinguishing it from sibling tools like create_payment.

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 explicitly says 'Useful for budget-aware agents to price-check before committing.' It provides concrete examples (e.g., 'Pass service=text-to-speech&chars=1500') and notes that omitting params lists all services. It lacks explicit when-not-to-use but is clear enough.

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/cnghockey/sats4ai-mcp-server'

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