Skip to main content
Glama

Export grid sheet CSV

export_grid_sheet_csv
Read-onlyIdempotent

Export the Grid sheet to CSV with the same columns and formatting as Export CSV. Includes all matching rows across pages.

Pass filters or filterId from the same sheet. Omit both to export the whole sheet. The result contains the CSV text, filename, and data row count.

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": {
      "sheetId": "<sheetId>"
    },
    "name": "export_grid_sheet_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoUser task for usage analytics. Omit private details.
filtersNoGrid filter rules joined by AND. Supply filterId instead to reuse saved rules.
sheetIdYesSheet ID from get_grid in this project or the result of create_grid_sheet.
filterIdNoSaved filter ID for this sheet, from save_grid_sheet_filters or the filters parameter in its URL.
llm_modelNoExact model ID from the calling runtime. Send on every call when known. Omit if unavailable.
projectIdNoProject ID from list_projects. Omit to use the configured or sole accessible project.

Output Schema

NameRequiredDescriptionDefault
dataNoCSV text, suggested filename, and the number of matching data rows.
successYesTrue when the tool returns normally.
executionTimeNoElapsed time, e.g. 0.12s.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered; the description adds real value by noting that all matching rows across pages are included (no pagination truncation) and by summarizing the result as CSV text, filename, and row count. It could have said more about size limits on large exports, which is the remaining practical risk.

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?

Two short paragraphs, front-loaded with what is produced, followed by the parameter decision rule. Every sentence carries information an agent needs, with no restatement of the name or 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?

With six parameters, full schema description coverage, an output schema, and complete annotations, the description only needs to supply scope and the filter/whole-sheet decision, both of which it does. Nothing required to invoke it 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, and the description earns a bump by explaining the mutually exclusive filters/filterId behavior and the consequence of omitting both — semantics the schema states only per-property. It adds no guidance on projectId scoping, but that is documented in the schema itself.

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 uses a specific verb and resource ('Export the Grid sheet to CSV') and states the output is column/formatting-identical to the Export CSV feature, which tells an agent what it gets without opening the schema. It stops short of naming a sibling to contrast against (e.g. get_grid_sheet_rows or read_grid_sheet_view), so differentiation is implied rather than stated.

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

Usage Guidelines4/5

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

It gives concrete routing guidance on the filter path: pass filters or filterId, and omit both to export the entire sheet, which resolves the main selection ambiguity for this tool. It does not say when to prefer this over row-reading siblings like get_grid_sheet_rows, leaving that inference to the agent.

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