Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_upload_link

Creates a one-time upload URL so a user can send a spreadsheet via a single PUT or resumable parts, then pass the returned file_handle to any tool.

Instructions

Use this when an app needs a one-time upload link for its user's file: PUT the file to upload_url in one request, or in resumable parts with Content-Range: bytes -/ (HEAD the link for Upload-Offset), then pass file_handle to any tool.

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

Input Schema

NameRequiredDescriptionDefault
purposeNoOptional short note shown on the upload page. The returned upload_url takes the file in one PUT, or in resumable parts: PUT each part with Content-Range: bytes <first>-<last>/<total>, HEAD the link for Upload-Offset (bytes received so far) and send the rest from there. Then pass file_handle to any tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.3.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, but the description adds genuinely useful behavior beyond them: the link is one-time (consistent with non-idempotent), the exact PUT/Content-Range/HEAD Upload-Offset protocol, and that the resulting file_handle is reusable by any other tool. It omits link expiry and concurrency semantics for parallel parts, which would complete the picture for a one-time token.

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?

One front-loaded sentence that opens with the selection condition and then the invocation steps, with no filler. It is dense but readable; the resumable-protocol clause duplicates the schema description and could be trimmed to keep the tool description focused on selection and output.

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?

With no output schema, the description carries the burden of explaining returns, and it does name both outputs (upload_url for the file, file_handle for downstream tools) plus the protocol. For a single-parameter, non-destructive tool this is nearly complete; missing only link lifetime/expiry and what happens on a second PUT.

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?

There is a single optional parameter and schema description coverage is 100%, so the schema already explains purpose adequately. The description adds no parameter-level meaning of its own — the upload mechanics it discusses are verbatim the same content already carried in the purpose parameter's schema description. Baseline 3 is appropriate when the schema does the work.

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 identifies a concrete resource and action: a one-time upload link for a user's file, plus the upload_url and file_handle it produces. It is slightly indirect ("Use this when an app needs..." rather than "returns a one-time upload URL"), but an agent can immediately tell this is the file-ingress tool rather than a spreadsheet mutation tool like xlsx_convert or xlsx_aggregate.

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 trigger condition is explicit (when an app needs a one-time upload link for its user's file) and the follow-on step is spelled out (pass file_handle to any tool). It also distinguishes the two upload modes: single PUT versus resumable parts with Content-Range. It stops short of exclusions, e.g. when to prefer a direct local file path or what to do if the link has already been consumed, so it is clear context without full when-not guidance.

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