Skip to main content
Glama

preview_cells

Preview translatable cells from an Excel file, showing their location and content to understand what will be translated before running full translation.

Instructions

Preview translatable cells from an Excel file.

Returns the first N cells that would be translated, showing their location and content. Useful for understanding what will be translated before running a full translation.

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
limitNoMaximum number of cells to preview (default: 10, max: 50)
sheetsNoSpecific sheet names to preview. If omitted, previews from 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.
Behavior3/5

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

No annotations are provided, so the description is the sole source of behavioral info. It states the tool is non-destructive and previews cells, but does not detail whether it requires file access or any side effects. Important behavioral notes like file_path vs base64 exclusivity are included, but overall transparency is moderate.

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?

The description is well-structured with a summary, numbered usage instructions, and an important note. It is concise but includes necessary details. Each sentence adds value, though a minor redundancy exists.

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 no output schema or annotations, the description covers the tool's purpose, input methods, and key usage notes. It provides sufficient context for an agent to decide when to use it. The output format is not described, but for a preview tool this is acceptable.

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%, providing a baseline of 3. The description adds significant meaning: it explains the purpose of each parameter (e.g., file_path for local files) and provides important usage context (e.g., default limit, mutually exclusive parameters). This goes beyond the schema's descriptions.

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 purpose: preview translatable cells from an Excel file. It explains what it returns (first N cells with location and content) and when to use it (before full translation), distinguishing it from sibling tools like translate_excel.

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 explicit usage instructions for different input types (local files, uploaded files, base64). It explains that the tool is useful for understanding what will be translated, giving clear context. However, it lacks explicit exclusions of when not to use it.

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