Skip to main content
Glama

Doc-to-LLM Markdown, Table JSON, RAG Chunker & PII Redactor

table_to_structured_json

Parse user-supplied CSV, TSV, Markdown pipe table, or HTML into normalized JSON records with inferred column types and completeness statistics.

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": {
      "content": "<content>"
    },
    "name": "table_to_structured_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoInput table format (auto-detected by default).auto
contentYesRaw CSV, TSV, Markdown table, or HTML table string.
trim_cellsNoTrim leading/trailing whitespace in cells.
infer_typesNoInfer integer, float, boolean, and null types.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It discloses that types are inferred and completeness statistics are produced, but omits side-effect profile, malformed-input behavior, limits, and permission/auth expectations.

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?

A single front-loaded sentence lists the accepted formats, output representation, and two key behaviors without redundant wording. Every phrase contributes to identifying the tool's scope.

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

Completeness3/5

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

For a four-parameter parser with full schema coverage but no output schema, the description explains the conceptual return value (normalized JSON records with type inference and completeness statistics) but not its structure or error behavior. This is adequate but has notable gaps for an agent needing to interpret the result.

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 coverage is 100%, with inline descriptions for all four parameters including the format enum and defaults. The description restates the accepted formats and type inference but adds no parameter-level meaning 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?

Uses the specific verb 'Parse' with the resource formats CSV, TSV, Markdown pipe table, and HTML <table>, and names the output as normalized JSON records with inferred types and completeness statistics. This makes it clearly distinct from sibling tools such as html_to_llm_markdown, which produces Markdown rather than structured records.

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

Usage Guidelines2/5

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

No explicit when-to-use guidance, prerequisites, or alternatives are provided. The description only states what the tool does, leaving the agent to infer that it should be selected when table content needs conversion to JSON.

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