Skip to main content
Glama

analyze_table

Analyzes column positions in a grid table by scanning '+' markers and validating '|' alignment, using wcwidth for correct spacing of Thai, Pali, and CJK characters.

Instructions

Analyze column positions in a grid table (+---+).

Uses display-width space (via wcwidth) for position comparison, so Thai/Pali combining marks (พิทุ, สระบน/ล่าง) are handled correctly.

Scans '+' markers in border lines to define column boundaries, then validates '|' alignment in data rows.

Args: table_text: A +---+ grid table as raw text

Returns: Analysis report: column positions, alignment validation, parsed cells

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
table_textYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Describes key behaviors: uses wcwidth for display-width, handles Thai/Pali combining marks, scans '+' markers, validates '|' alignment, and returns an analysis report. No annotations provided, so description carries full burden; it is detailed but could be more explicit about being read-only.

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?

Description is structured into paragraphs with args/returns and key implementation details. Each sentence adds value, though it could be slightly more streamlined without losing clarity.

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?

Given the simplicity of the tool (single parameter, clear output), the description covers input, behavior, and output adequately. It explains Unicode handling and return structure, though error cases are not mentioned.

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?

The only parameter 'table_text' is explained as 'A +---+ grid table as raw text', adding meaning beyond the schema's type string. The description compensates for 0% schema coverage effectively.

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?

Description clearly states the tool analyzes column positions in a grid table, with specific details like scanning '+' markers and validating '|' alignment. It distinguishes itself from sibling tools by focusing on analysis rather than table creation or preview.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool versus alternatives like 'validate_table_text' or 'debug_table'. The description implies usage for analyzing grid table formatting but does not provide exclusions or contrasts.

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

Install Server

Other Tools

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/dhammawatthumpra-coder/ascii-table-mcp'

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