Skip to main content
Glama

upload_csv

Stage CSV TEXT so it can be imported as a dataset. This exists for MCP Apps hosts: MCP has no file transport, so a widget reads the user's file in the browser and passes its text here, receiving the same attachmentId a chat upload would mint. Pass that id straight to import_attachment_as_dataset. In chat you never need this - the upload preview already carries an attachmentId. Do NOT invent CSV content to call this with; it is a transport for a file the USER chose. Cost: FREE - reads your connected/stored data, no AI credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNameYesThe file's name, e.g. cities.csv
csvContentYesThe raw CSV text, header row first
user_intentNoOptional: one short sentence describing what the user is ultimately trying to achieve with this request. Used by SEOmatic to tailor answers and improve the product; never required.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already set readOnlyHint=false, destructiveHint=false, and openWorldHint=true, and the description adds useful behavior beyond that: it returns the same attachmentId a chat upload would mint, it stages the text, it is free and consumes no AI credits, and the content must come from a user-chosen file. No annotation contradiction is present.

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?

The description is longer than average but every sentence earns its place: purpose, host-specific context, routing to the sibling, chat exclusion, safety warning, and cost. The key purpose and warning are front-loaded before the cost detail.

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 staging tool with an output schema and full parameter coverage, the description covers the entire call flow: where the file text comes from, what is returned, which sibling to call next, and when to avoid the tool. Nothing required for correct invocation is missing.

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% and the parameter descriptions are already explicit, so the baseline is 3. The description adds contextual color by tying csvContent to 'the user's file in the browser' and by explaining the returned attachmentId, but it does not add new parameter-level syntax beyond the schema.

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 opening sentence names a specific verb and resource: 'Stage CSV TEXT so it can be imported as a dataset.' It also distinguishes itself from the sibling import_attachment_as_dataset by explaining it produces an attachmentId that should be passed to that tool, and clarifies it is not a generic upload by warning not to invent content.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly says when to use it ('MCP Apps hosts... no file transport'), when not to use it ('In chat you never need this'), and names the next step ('Pass that id straight to import_attachment_as_dataset'). It also gives a strong negative guideline: 'Do NOT invent CSV content to call this with.'

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.