Skip to main content
Glama

Upload source files

submit_sources

Upload export files into your human's workspace to build or rebuild their map; then call build_map. files: [{path, content, encoding?}]. path starts with the system folder (shopify/orders.csv, dinero/postings.csv): the folder name becomes the system in the map, so leave out a shared root folder. content is the file as text (CSV, JSON, JSONL, Markdown, VTT, mbox) or, with encoding base64, an Excel workbook (.xlsx, up to 20 sheets and 50,000 rows per sheet, each sheet a CSV) or a PDF (its text layer, first 100 pages; a scanned PDF is listed as unreadable). Images, audio, video and archives are refused. Up to 100 files and 5 MB per call, 2 MB per file; call again with the returned upload_id to add more (300 files / 80 MB per upload); an upload not built within 24 hours is deleted. If you cannot read a system directly, ask your human to export into one shared folder, one subfolder per system; too large to pass through you, your human uploads the folder on Data sources › Scans. Needs: a key with upload consent.

Input Schema

NameRequiredDescriptionDefault
filesYesFiles to add: relative path with a system folder, content as text or base64.
upload_idNoContinue an upload: the id a previous submit_sources call returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / files / items / properties / content / description
      Added value: +"The file as text, or as base64 with encoding \"base64\" (Excel workbooks and PDFs)."
    • addedInput schema / properties / files / items / properties / encoding / description
      Added value: +"\"utf8\" (default) for text files; \"base64\" for an Excel workbook or a PDF."
    • addedInput schema / properties / files / items / properties / path / description
      Added value: +"Relative path starting with the system folder, e.g. \"dinero/postings.csv\"; the folder becomes the system in the map."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false): discloses quotas (100 files, 5 MB per call, 2 MB per file, 300 files / 80 MB per upload), a 24-hour deletion lifecycle for unbuilt uploads, refused media types, the 20-sheet/50,000-row Excel expansion, PDF text-layer-only extraction with the scanned-PDF failure mode, and the upload-consent key requirement. That is the behavioral detail an agent needs before calling.

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 purpose and the next call, then constraints in rough priority order. It is dense and semicolon-chained rather than cleanly sectioned, but nearly every clause carries operational information (formats, limits, lifecycle, fallbacks) rather than filler.

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 two-parameter upload tool with no output schema, the description supplies the full operating picture: prerequisites (upload consent key), size and count ceilings, expiry, unsupported types, failure handling, and the required follow-up call. Nothing an agent needs to invoke this correctly is 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: the leading folder name becomes the system in the map, a shared root folder must be omitted, and the accepted content formats and encoding pairing are spelled out. It stops short of clarifying edge cases like path collisions or how upload_id interacts with a fresh files array.

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?

Opens with a specific verb and resource ('Upload export files into your human's workspace to build or rebuild their map') and immediately names the follow-up sibling, build_map. An agent can distinguish this from build_map and list_sources without opening a schema.

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?

Explicit sequencing ('then call build_map'), an incremental-add path ('call again with the returned upload_id'), and two concrete fallbacks: ask the human to export into one shared folder with one subfolder per system, or have them upload via Data sources › Scans when files are too large. When-to-use, when-not, and alternatives are all present.

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