Skip to main content
Glama

Create table from CSV

table_create_from_csv

Create a table and rows from CSV. description (optional) says what it is, one line first. headers and explicit schema are mutually exclusive; a column name is 1 to 256 characters with no leading or trailing space, comma or square bracket (headers are trimmed), and an unclosed quote is INVALID_INPUT. A schema may mark at most one column unique, the key. A key value repeated in the file (two blank cells count) is STATE_CONFLICT, and a key value over 1024 bytes or a cell holding U+0000 or a lone surrogate is INVALID_INPUT; either way no table is created. A workspace table created with no description returns a hint saying so.

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": {
      "csvContent": "<csvContent>"
    },
    "name": "table_create_from_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
titleNoThe table's title.
folderNoThe folder to file it in: a folder id, or a slug (in workspaceId, else your personal folders).
schemaNoThe columns instead of headers. Not with headers.
headersNoThe first row names the columns. Not with schema.
csvContentYes
descriptionNoOne line saying what this table is (lists show the first line), at most 64000 characters.
workspaceIdNoTable home: a workspace, by its id or its slug (a workspace folder named in folder implies it). A workspace table needs why and takes no visibility. New tables need no expected revision.
inputReferencesNoWhat it was made from: ids or URLs.
parentArtifactIdNoThe artifact this one was derived from.

Output Schema

NameRequiredDescriptionDefault
tableYes
rowCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed1 schema field changed
    • changedInput schema / properties / description / description
      Previous value: -"The table's description, at most 64000 characters."New value: +"One line saying what this table is (lists show the first line), at most 64000 characters."
  3. Changed1 schema field changed
    • changedInput schema / properties / description / description
      Previous value: -"The table's description."New value: +"The table's description, at most 64000 characters."
  4. Changed2 schema fields changed
    • removedInput schema / properties / audience
      Removed value: -{
      -  "description": "Requires workspaceId; defaults internal for internal members, shared for external editors.",
      -  "enum": [
      -    "internal",
      -    "shared"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / table / properties / audience
      Removed value: -{
      -  "enum": [
      -    "internal",
      -    "shared"
      -  ],
      -  "type": "string"
      -}
  5. Changed1 schema field changed
    • removedInput schema / properties / creatorContext
      Removed value: -{
      -  "description": "How it was made: the prompt, tool or run.",
      -  "maxLength": 16000,
      -  "type": "string"
      -}
  6. Changed5 schema fields changed
    • changedInput schema / properties / workspaceId / description
      Previous value: -"Table home (a workspace folder named in folder implies it). A workspace table needs why and takes no visibility. New tables need no expected revision."New value: +"Table home: a workspace, by its id or its slug (a workspace folder named in folder implies it). A workspace table needs why and takes no visibility. New tables need no expected revision."
    • removedInput schema / properties / workspaceId / format
      Removed value: -"uuid"
    • addedInput schema / properties / workspaceId / maxLength
      Added value: +64
    • addedInput schema / properties / workspaceId / minLength
      Added value: +1
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  7. First observed

TDQS

A4/5.0
Behavior5/5

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

With annotations covering only the safety profile, the description adds substantive behavior: an unclosed quote is INVALID_INPUT, duplicate key values (including two blank cells) are STATE_CONFLICT, oversized keys and NUL/lone-surrogate cells are INVALID_INPUT, and critically "either way no table is created" discloses atomicity. It also notes the hint returned for workspace tables with no description, which is behavior nothing else in the definition exposes.

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 first sentence declares the action, then rules follow in decreasing importance with no filler. The semicolon-chained clauses are dense but every one carries a distinct constraint, and the failure-mode sentence is grouped logically.

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?

An output schema exists, so return values need no explanation, and the description covers the CSV-parsing traps and failure semantics that an agent could not infer. The gap is that it never positions the tool against table_create/table_append_rows, which for a 10-parameter creation tool is the main remaining ambiguity.

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 90%, so the baseline is 3 and the schema already documents headers/schema exclusivity, the unique-key rule and column-name constraints. The description largely restates those, adding only small details (headers are trimmed, at most one unique column). It says nothing about why, workspaceId, folder, inputReferences or parentArtifactId beyond the schema.

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?

"Create a table and rows from CSV" states a specific verb and resource plus the input format, which implicitly separates it from table_create (empty table) and table_append_rows (rows into an existing table). It never names those siblings, so the differentiation is left to inference.

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

Usage Guidelines3/5

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

It gives a real usage constraint in "headers and explicit schema are mutually exclusive", which tells the agent how to configure a call. It gives no guidance on when to pick this over creating a table and appending rows separately, nor any prerequisite or context conditions.

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.