Skip to main content
Glama

extract_table

Extract one specific table by its 1-based index from a document and return it as complete Markdown, so you can read just that table instead of the whole file.

Instructions

只读取指定序号的那一张表,输出完整 Markdown 表格。文档里表格很多时用它,避免整份读进来。序号从 1 开始。

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": {
      "path": "<path>"
    },
    "name": "extract_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes文档路径
indexNo表序号,从 1 开始

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It usefully discloses that the operation is selective and that the output is a complete Markdown table, but it does not cover behavior such as invalid index handling, permissions, or limits when tables are very large.

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 concise and front-loads the key behavior: reading exactly the selected table and returning Markdown. The usage note and one-based indexing clarification follow naturally, with no unnecessary wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the definition does not need to explain the return shape; it still mentions the Markdown output appropriately. For a simple two-parameter extraction tool, the description covers when to use it and how to interpret the index, leaving only peripheral error behavior unspecified.

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 description coverage is 100%, and the schema already documents both path and index including the one-based indexing. The description reinforces that only the specified table is read and that numbering starts at 1, but it adds little semantic detail beyond the 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 operation: reading exactly one table selected by its index and outputting a complete Markdown table. It distinguishes this from reading the whole document by explaining the many-tables use case, so an agent can identify the intended tool clearly.

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 definition gives a clear usage condition: use it when the document contains many tables to avoid reading the entire document. It does not explicitly state when not to use it or name an alternative tool, but the guidance is sufficient for selection.

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