Skip to main content
Glama

export_sheet_to_csv

Export a chosen Excel sheet to CSV, with configurable delimiter and cell range, saving to a file or returning content inline.

Instructions

Export a single Excel sheet to a CSV file.

  • file_path: path to the source .xlsx workbook

  • sheet_name: name of the sheet to export

  • output_path: destination file path (e.g. "/tmp/data.csv"), or "return inline" to return the content directly without saving

  • delimiter: column separator — "comma" (default), "pipe", or "tab"

  • cell_range: optional Excel range string (e.g. "A1:D10"). When omitted the entire used range is exported.

Returns a dict with:

  • output_path: path of the file written (omitted when returning inline)

  • content: CSV text (only present when returning inline)

  • sheet: sheet name

  • range: the range that was exported

  • rows_written: number of rows written

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
delimiterNocomma
file_pathYes
cell_rangeNo
sheet_nameYes
output_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains that content can be returned inline or written to a file, and it fully documents the return dict fields. It does not discuss overwrite behavior or auth expectations, but for a simple export tool the behavioral contract is well covered.

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 description is well-structured: a one-line purpose, a bullet list of parameters, and a bullet list of return fields. Each item adds necessary information and none is redundant or filler. It is longer than usual but earns its length given the zero schema coverage.

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?

Given five parameters, no annotations, and no schema-level descriptions, this description covers everything an agent needs: required arguments, optional behavior, output path semantics, delimiter options, range handling, and return contract. Nothing critical is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description meaningfully explains every parameter: file_path, sheet_name, output_path including the special 'return inline' value, delimiter with its allowed values and default, and cell_range with its default behavior. This fully compensates for the missing schema descriptions.

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?

The description opens with a specific verb and resource: 'Export a single Excel sheet to a CSV file.' It also says 'single', which distinguishes it from multi-sheet export tools, and the CSV target clearly differentiates it from siblings like export_sheet_to_text and export_sheet_to_markdown.

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?

The description gives clear context for when to use the tool: whenever a single Excel sheet must be converted to CSV. It explains the inline return mode and optional range behavior, though it does not explicitly name alternative tools or state when not to use this tool. That prevents a 5 but the context is clear enough for selection.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/urjeetpatel/excel_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server