Skip to main content
Glama

Upload a spreadsheet

create_data_source

Create a data source from a CSV or spreadsheet you provide as base64. Best for data you have generated — a CSV you assembled from a transform, an export you built. The bytes travel through your own context, roughly four characters per three bytes, so keep it under about 256 KB; a spreadsheet that already exists on disk is far cheaper to upload in the app. Hard limit 4.0 MB. Creating it does not attach it — call attach_data_source next. NOTE: pictures embedded in spreadsheet cells are NOT extracted on this path; that only happens when a workbook is uploaded through the app.

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": {
      "filename": "<filename>",
      "contentBase64": "<contentBase64>",
      "llm_model": "<llm_model>"
    },
    "name": "create_data_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name. Defaults to the file name.
filenameYesThe file name including extension — .csv, .xlsx, .xlsm or .xls. The extension decides how it is parsed.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
contentBase64YesThe file's bytes, base64-encoded, with no data: prefix.
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, openWorld=false; the description adds substantial context beyond them: the base64 payload travels through the agent's own context at ~4/3 size inflation, a ~256 KB practical cap with a 4.0 MB hard limit, and that embedded cell images are not extracted on this path. What is missing is failure behavior (duplicate names, malformed base64, what happens at the limit) and whether the created source is visible workspace-wide.

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?

Front-loaded with the action and the intended use case, then constraints, then the mandatory next step, then the caveat — a sensible order with no filler. It is dense, however: several clauses are packed into single sentences (the size-limit sentence carries overhead, recommendation and hard limit at once), which makes it harder to scan than it needs to be.

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 mutating create tool with no output schema, the description covers the payload format, size economics, supported extensions, the create-vs-attach split, and a real functional limitation (embedded images not extracted). Nothing an agent needs in order to invoke this correctly appears to be missing.

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 to contentBase64 (context-cost overhead, recommended and hard size ceilings) and filename (extension determines parsing) that the schema does not state. It does not add anything for llm_model or conversation_id, but those are already fully specified in 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?

States a specific verb and resource ('Create a data source from a CSV or spreadsheet you provide as base64') and immediately narrows the intended case to data the agent itself generated. It also distinguishes this path from uploading an existing file on disk, so an agent can tell it apart from the media-upload siblings without opening their schemas.

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?

Gives an explicit when-to-use ('best for data you have generated — a CSV you assembled from a transform, an export you built') and a when-not ('a spreadsheet that already exists on disk is far cheaper to upload in the app'). It also names the mandatory follow-up tool ('call attach_data_source next'), which is the key sequencing rule.

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.

Resources