Skip to main content
Glama

mechacut

csv_excel_display

What Excel DISPLAYS from a STORED value under a numFmt code — the render, not the damage. arXiv 2611.05806 measured it: cell B9 stores 1,000,000 under '$#,##0,' (the TRAILING COMMA SCALES by a thousand) and Excel shows $1,000; six python extractors (markitdown, openpyxl, pandas, unstructured, calamine, Docling) all emit the stored value — every chat assistant and 3 of 4 coding agents tested got budget-approved numbers the human never saw. Feed the stored value (what your extractor gave you) plus the format code (styles.xml); get the display string + the rules said. Closed subset from Microsoft's OWN symbol table with its resolved examples replayed: '#.0,,' + 12200000 -> '12.2'; '(000)' + 12 -> '(012)'; '0%' + 0.5 -> '50%'; '0.00 "dollars"' + 1.23 -> '1.23 dollars'; '#.##' + 8.9 -> '8.9'; display rounding half-away-from-zero (2.5 under '0' -> 3) — and the stored value NEVER changes, only the display. Separators are SYMBOLS in the file (Microsoft states content is locale-invariant): pass the locale you display in and '1234567.891' under '#,##0.00' becomes 1.234.567,89 in de-DE. REFUSED by name: General (column-width dependent), E-notation, date/time codes, [Red], [<] conditions, * fill, _ skip, @ text. Free.

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

Input Schema

NameRequiredDescriptionDefault
valueNothe STORED number as extracted, e.g. '1000000' or '25604.880000000001'
formatNothe numFmt code, e.g. '$#,##0,' or '#,##0.00'
localeNodisplay locale for separators (closed table), default en-US

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?

With no annotations supplied, the description carries the full behavioral burden and does so: it discloses the display rounding rule (half-away-from-zero, 2.5 under '0' -> 3), that the stored value is never mutated, that the supported set is a closed subset of Microsoft's symbol table, and that unsupported codes are refused by name. Locale handling is also disclosed as a closed table rather than open-ended ICU behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core definition is front-loaded in the first sentence, but the body is dense with all-caps emphasis and an anecdotal narrative about six extractors and 'budget-approved numbers the human never saw' that informs risk but is not needed to invoke the tool. The trailing 'Free.' is pure marketing and earns no place in a tool definition.

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?

For a three-parameter tool with no annotations and no output schema, the description covers everything an agent needs: inputs, the returned display string plus the applied rules, rounding semantics, locale behavior, and the exact scope of what is rejected. Nothing material is left for the caller to guess.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it clarifies that 'value' must be the stored (not displayed) form, that 'format' comes from styles.xml, and that 'locale' drives separator rendering with a worked de-DE example ('1234567.891' -> 1.234.567,89). These go beyond the schema's terse examples.

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 first sentence states a precise verb and resource: it renders what Excel DISPLAYS for a stored value under a numFmt code. The clause 'the render, not the damage' explicitly separates it from the stored-value-extraction sibling csv_excel_damage, so an agent can pick the right tool 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description tells the agent exactly what to feed in ('the stored value (what your extractor gave you) plus the format code (styles.xml)') and what comes back. It also defines a hard boundary via the 'REFUSED by name' list (General, E-notation, date/time, [Red], conditions, fill, skip, text), which functions as explicit when-not guidance. It stops short of naming a fallback tool for those refused cases, so it is not a full 5.

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.