Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

csv_check

Read-onlyIdempotent

Validate CSV structure and detect injection risks before the file is imported or processed elsewhere.

Instructions

Use this when you need to verify CSV structure and injection safety before it is imported anywhere else.

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": {
      "file_b64": "<file_b64>"
    },
    "name": "csv_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoThe spreadsheet file, handed off by a host that fills in the OpenAI file-parameter convention (openai/fileParams) from an uploaded or attached file. The server downloads download_url once, server-side; never a local sandbox path.
file_b64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.3.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered without prose. The description adds the gating role (validate prior to import) but says nothing about what happens with a failing file, whether the check is a hard block or advisory, or how it handles malformed input.

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?

A single sentence with no filler, and the usage trigger is front-loaded. It is efficient, though the same sentence carries all the burden and no second line is spent on what the tool returns.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a validation tool with no output schema, an agent needs to know the shape of the result (a boolean verdict, a findings list, a structural summary), and this is not disclosed. Combined with the undocumented required file_b64 parameter, the description leaves gaps for a tool that is meant to gate downstream imports.

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

Parameters2/5

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

The nested file object is well documented in the schema, but the required parameter file_b64 has no description at all and the tool description never mentions it, so its encoding and relationship to the file object are left entirely to inference. At 50% schema coverage, the description needed to compensate and does not.

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 states a specific verb ('verify') and specific checks ('CSV structure and injection safety'), which is far more informative than the title alone. It does not, however, distinguish itself from the sibling xlsx_check, which by name appears to be the analogous validator for another format.

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?

'Use this when... before it is imported anywhere else' gives a clear triggering condition and timing relative to the import tools. It stops short of naming an alternative for non-CSV files or stating exclusions (e.g., a CSV already validated in this session).

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