Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_read_handle

Read-onlyIdempotent

Reads a workbook from a server-side handle created by the chunked-upload flow, letting you inspect sheets as markdown or JSON without resending file bytes.

Instructions

Use this when you need to read a workbook already uploaded via the chunked cache flow, by its server-side handle — skips re-sending the bytes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workbook_handle": "<workbook_handle>"
    },
    "name": "xlsx_read_handle"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetNoOptional: restrict the read to a single sheet by name.
formatNoOutput format. Defaults to md.
workbook_handleYesServer-side cache handle returned by the chunked-upload finalize call. 1-128 chars.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv4.3.1
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Output format. Defaults to md.",
      +  "enum": [
      +    "md",
      +    "json"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / options
      Removed value: -{
      -  "properties": {
      -    "format": {
      -      "enum": [
      -        "md",
      -        "json"
      -      ],
      -      "type": "string"
      -    },
      -    "sheet": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / sheet
      Added value: +{
      +  "description": "Optional: restrict the read to a single sheet by name.",
      +  "type": "string"
      +}
    • addedInput schema / properties / workbook_handle / description
      Added value: +"Server-side cache handle returned by the chunked-upload finalize call. 1-128 chars."
  2. First observedv3.2.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds genuine context beyond them: the workbook must already exist in the server-side cache and the call avoids re-transmitting bytes. It does not say what happens with an expired or unknown handle, which is the one notable behavioral gap.

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?

A single sentence, front-loaded with the usage trigger and the key resource, with zero filler. The em-dash clause carrying the 'skips re-sending the bytes' rationale earns its place.

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?

For a three-parameter, annotation-covered read tool this covers the essential prerequisite and the read semantics. It does not explain the return payload, though the format enum (md/json) lets an agent infer it, and there is no output schema to rely on.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents workbook_handle, sheet and format including the enum. The description mentions only the handle and does not add meaning to the sheet or format parameters, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('read a workbook ... by its server-side handle') and scopes it to the chunked-cache upload flow, which is enough to distinguish it from a plain file/byte read. It stops short of naming the sibling it contrasts with, so the differentiation is implied rather than explicit.

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?

It states a clear triggering condition — 'when you need to read a workbook already uploaded via the chunked cache flow' — which tells the agent the prerequisite state before calling. It offers no when-not guidance and does not name an alternative for reading from raw bytes or a path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.