Skip to main content
Glama

estimate_translation_cost

Get cell count, API cost, and processing time estimates for translating an Excel file to plan budgets before running translations.

Instructions

Estimate the cost of translating an Excel file.

Returns cell count, estimated API cost, and estimated processing time. Useful for budgeting and planning before running translations.

USAGE INSTRUCTIONS:

  1. For local files: Use the 'file_path' parameter with the full path (e.g., ~/Downloads/report.xlsx)

  2. For uploaded files: Ask the user to save the file locally first, then use 'file_path'

  3. For base64 input: If you already have base64 content, use 'file_content_base64'

Provide either 'file_path' OR 'file_content_base64' (not both).

IMPORTANT: When using file_path, DO NOT show the base64 content to the user. Just call the tool and show the results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sheetsNoSpecific sheet names to estimate. If omitted, estimates all sheets.
file_pathNoPath to a local Excel file (e.g., ~/Downloads/report.xlsx). Use this for files saved on the user's computer.
file_content_base64NoBase64-encoded Excel file content. IMPORTANT: When user uploads a file, use the file's resource URI from your context instead of reading it manually. If you have access to the file content directly, encode it to base64.
Behavior5/5

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

Even without annotations, the description fully discloses behavior: it returns estimates (not actual translations), explains constraints on input, and includes privacy guidance (not showing base64). No side effects or destructive actions are implied, which is appropriate for a read-only estimation tool.

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?

Description is front-loaded with purpose and returns, then organized with numbered usage instructions and an important note. Every sentence adds value without redundancy. Despite moderate length, information density is high.

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 no output schema or annotations, the description covers all essential aspects: what the tool does, what inputs are needed, how to use each input modality, and what output to expect. It provides complete guidance for an AI agent to select and invoke the tool correctly.

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?

All three parameters are described in the schema (100% coverage) and the description adds meaningful context: 'file_path' for local files, 'file_content_base64' for base64 input, 'sheets' for filtering. It also clarifies mutual exclusivity of the file parameters.

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 estimates translation cost for an Excel file and lists specific return values (cell count, API cost, processing time). It is distinct from sibling tools like 'translate_excel' (which performs translation) and 'count_translatable_cells' (which counts cells without cost estimation).

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 instructions for different input types (local file path, uploaded file, base64), warns against providing both file_path and file_content_base64, and advises not to show base64 content to the user. This gives clear when-to-use guidance and prevents misuse.

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/ewalid/rosetta'

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