Skip to main content
Glama

Agent Data Tools: Utilities

Markdown table from CSV: convert CSV into a GitHub table

csv_to_markdown
Read-only

Convert CSV (comma, semicolon, tab or pipe, detected automatically; quoted fields supported) into a GitHub-flavoured Markdown table, with number columns right-aligned, pipes escaped and line breaks kept as . Up to 100 KB. Use to show spreadsheet data in a README, chat reply, issue or report; for JSON use csv_to_json. Example: csv=tool,price,calls weather,0.01,120 search,0.01,45. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "csv": "<csv>"
    },
    "name": "csv_to_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYesThe CSV text (up to 100 KB)
headerNotrue (default) if the first row holds the column names

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only/destructive/open-world, but the description adds substantive behavior: auto-detected delimiters, quoted-field handling, pipe escaping, <br> line breaks, a 100 KB cap, and billing ('each call is charged, so repeats are not free', first 10 free, failed calls free). That last point usefully explains the idempotentHint=false setting rather than contradicting it. Only gap is error behavior on malformed CSV, mentioned only obliquely via 'failed calls free'.

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 the conversion semantics and the alternative routing before the pricing note. The example block and pricing details are useful but make it longer than strictly needed for tool selection; nothing is truly redundant.

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 no output schema, the description still conveys the return shape (GitHub table, right-aligned numeric columns, escaped pipes, <br> newlines), plus input limits and cost. For a two-parameter, read-only conversion tool, nothing an agent needs to call 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 a 3 is the floor, and the description earns above it by explaining how the csv string is parsed (comma/semicolon/tab/pipe auto-detected, quoted fields supported) and by restating the header default of true with its meaning. It doesn't clarify what values other than true mean for header, but that is minor against full schema coverage.

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?

States a specific verb and resource (convert CSV into a GitHub-flavoured Markdown table) and immediately names the sibling it is not ('for JSON use csv_to_json'), so an agent can distinguish it without opening any 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?

Gives explicit usage contexts (README, chat reply, issue, report) and an explicit alternative with the condition that selects it ('for JSON use csv_to_json'). It also implicitly scopes input types via the size limit.

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