Skip to main content
Glama

read_table

Read a full table from a Markdown file as a clean pipe format, preserving inline formatting and returning a version hash for safe edits.

Instructions

Read a full table as a clean pipe table with version hash.

Prefer this over reading files directly — handles HTML tables, preserves inline formatting, and returns the version hash needed for any edit.

First line of output is metadata: v:{hash} {format} {rows}r {cols}c [{section}] Extract the 12-char hex hash after "v:" (e.g. "a1b2c3d4e5f6") and pass it as the version argument to any write tool.

If a write returns STALE_READ, call read_table again for a fresh version.

Args: file_path: Absolute path to the Markdown file. table_index: 0-based table index from list_tables (the number after T).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
table_indexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden—and it delivers: it discloses the exact output format, the metadata line structure, the 12-char hash extraction rule, and what to do on STALE_READ. This goes well beyond a generic 'reads a table' statement.

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?

The description is front-loaded with the core purpose, then metadata format, then stale-read handling, then arguments. It is somewhat long, but every sentence carries useful information and the structure is logical. Slightly tighter phrasing could earn a 5.

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?

For a two-parameter read tool with no output schema and no annotations, the description is complete: it explains output format, how to use the returned hash, how to recover from version conflicts, and what each parameter means. Nothing needed to call the tool correctly is missing.

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 coverage is 0%, so the description must compensate—and it fully does. file_path is defined as 'Absolute path to the Markdown file' and table_index as '0-based table index from list_tables (the number after T).' Both parameters are given meaning and context beyond the bare schema.

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 states a specific verb+resource: 'Read a full table as a clean pipe table with version hash.' It distinguishes itself from siblings by emphasizing it is the read operation ('Prefer this over reading files directly') and by covering what other table tools do not (HTML tables, inline formatting, version hash).

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 explicitly says to prefer this over reading files directly and gives a concrete use case ('returns the version hash needed for any edit'). It also provides recovery guidance for STALE_READ. However, it does not explicitly contrast with sibling search_tables or clarify when search would be more appropriate than a full read, so the guidance is clear but not exhaustive.

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