Skip to main content
Glama
Floe-Labs

Floe Payments and Credit

Official
by Floe-Labs

estimate_inference_cost

Estimate the USDC cost of an inference call before making it, using model and billing units (tokens, characters, or audio seconds), to inform gating decisions.

Instructions

Estimate the USDC cost of a Floe Inference call for a given model and usage vector, WITHOUT making the call or touching balance. Returns the cheapest priceable source: { rail, provider, margin_bps, upstream_cost_usdc, cost_usdc, cost_raw }. Provide only the units the model bills: text models use input_tokens/output_tokens (+cached_input_tokens); TTS uses characters; STT uses audio_seconds; realtime voice uses audio_input_tokens/audio_output_tokens. Use BEFORE inference to decide gating. Requires any Floe API key (agent floe_... or developer floe_live_...).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesModel id from list_models, e.g. "openai/gpt-4o" or "elevenlabs/eleven-turbo-v2.5".
charactersNoCharacters of input text (TTS models).
input_tokensNoPrompt tokens (text models).
audio_secondsNoSeconds of audio, fractional allowed (STT models).
output_tokensNoCompletion tokens (text models).
audio_input_tokensNoInput audio tokens (realtime voice).
audio_output_tokensNoOutput audio tokens (realtime voice).
cached_input_tokensNoCached prompt tokens billed at the cached rate (text models).
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well. It explicitly discloses non-mutating behavior ('WITHOUT making the call or touching balance'), the return structure, and authentication requirements. This gives the agent a clear safety profile and expectations.

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 dense yet efficient: the first sentence states the core purpose, followed by return format, parameter selection rules, usage timing, and authentication. Every sentence serves a distinct purpose with no fluff or redundancy.

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?

Given there is no output schema, the description appropriately explains the return value fields. It also covers key contextual aspects: non-side-effect behavior, when to use, how to select parameters, and auth requirements. For a cost-estimation tool with 8 params, this is complete enough for correct invocation.

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

Parameters5/5

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

Although the input schema has 100% coverage, the description adds critical meaning beyond individual field descriptions: it maps parameter sets to model types and instructs 'Provide only the units the model bills', resolving which parameters are relevant for which use case. This is essential semantic info not present in 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 a specific action ('Estimate the USDC cost of a Floe Inference call') with a specific resource (Floe Inference) and scope ('given model and usage vector'). It also distinguishes itself from sibling tools by emphasizing 'WITHOUT making the call or touching balance', making it unambiguous what this tool does and doesn't do.

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?

Provides explicit when-to-use guidance: 'Use BEFORE inference to decide gating.' It also gives parameter-selection guidance per model type (text/TTS/STT/realtime voice) and prerequisite auth information ('Requires any Floe API key'). This is comprehensive for choosing this tool over alternatives.

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/Floe-Labs/floe-mcp-server'

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