Skip to main content
Glama

Upload Csv

upload_csv

Load CSV or Excel files into a named DuckDB table for AgentUI Dash dashboards, letting an agent choose the target table before analysis.

Instructions

Upload a CSV/Excel file to the dashboard database.

The file will be ingested into a DuckDB table with the given name. The MCP agent decides the table name — no auto-classification.

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_path": "<file_path>"
    },
    "name": "upload_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the CSV/Excel file on disk.
table_nameNoTarget table name in DuckDB (default: "data").data

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses the ingestion target and that naming is manual, but says nothing about what happens when the table name already exists (overwrite, append, or error), whether the operation is destructive, or any size/format limits — critical for a write tool with zero annotation coverage.

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?

Three short sentences, front-loaded with the action and target, with no filler. The closing sentence is slightly redundant with the schema's table_name default but still carries a useful constraint.

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?

The output schema covers return values and the input schema covers parameters, so the description needn't explain those. However, for a mutation tool with no annotations it omits overwrite/conflict semantics and accepted file formats, leaving gaps an agent would want filled before calling it.

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%, so the schema already documents both parameters including the default table name. The description reinforces that table_name is agent-chosen and not auto-derived, which adds a little meaning, but nothing on path/format constraints 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?

The description states a specific verb and resource — uploading a CSV/Excel file into the dashboard database — and names the concrete target (a DuckDB table). The 'no auto-classification' clause adds a distinguishing nuance, but it never names a sibling such as upload_multiple_csvs, so the agent must infer the boundary itself.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no pointer to upload_multiple_csvs for multi-file cases. The only directive is that the agent must choose the table name, which is a calling convention rather than a usage condition.

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