Skip to main content
Glama

Parse an X12 EDI document (850, 856, 810, 855, 997 and others) into structured JSON.

edi_parse
Read-onlyIdempotent

Reads a raw ASC X12 interchange and returns it as JSON: delimiters taken from the ISA header, the ISA/GS/ST envelope decoded, every segment split into named elements, and a document-specific summary - purchase order lines for an 850, the HL shipment hierarchy and SSCCs for an 856, invoice totals for an 810. EDI is positional and delimiter-sensitive, and unreadable without a spec table; reading it by inspection produces confident nonsense, which is why this is a tool rather than a prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesRaw X12 EDI text, beginning with ISA where available.
include_segmentsNoInclude the flat segment list alongside the summary.

TDQS

A3.9/5.0
Behavior4/5

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

The description goes beyond the readOnly/idempotent/destructive annotations by explaining what the tool actually does with input: it derives delimiters from the ISA header, decodes the envelope, splits segments into named elements, and returns a document-specific summary. It also cautions about the positional and delimiter-sensitive nature of EDI, which is helpful context for agents.

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 two dense sentences, front-loaded with the actual output and parsing mechanics, and ends with a concise rationale for why the tool should be used instead of direct inspection. The reasoning is a slight digression, but the overall length/material-to-word ratio is strong.

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 no output schema, the description adequately conveys what the returned JSON includes and even sampling for several document types. It does not elaborate on error scenarios or malformed input behavior, but the core call and derived output are well enough specified for an agent to invoke the tool correctly.

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?

All parameters are fully described in the input schema with 100% coverage, so the baseline is 3. The description does not add meaningful parameter-level information beyond the schema, including nothing about the include_segments flag, but it does clarify that the input should begin with ISA when available.

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 clearly identifies the tool as reading a raw ASC X12 interchange and returning JSON, with a precise breakdown of the internal processing: delimiter detection, envelope decoding, segment splitting, and document-specific summaries. It includes relevant document types (850, 856, 810, 855, 997), and though it does not mention sibling tools by name, the parse/build/validate distinction is clear from the verb and scope.

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?

The description conveys that this tool is meant for raw X12 text that would otherwise be unreadable by inspection or fact-free prompting, giving a reasonable why and when. It does not explicitly say when to use edi_validate or edi_build instead, and it offers no exclusions or alternatives beyond stating it is a tool rather than a prompt.

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.

TDQS

A4/5.0
Disambiguation5/5

Every tool has a clearly distinct purpose: EDI build/parse/validate, JSON query/repair, time now/convert/diff/window, and tool search/describe/call are all cleanly separated. Even the time-related tools address non-overlapping questions.

Naming Consistency4/5

Most tools follow recognizable group patterns: edi_*, time_*, json_*, tool_*. A few exceptions like hash, cron_next, and math_eval break the verb_noun pattern, but the naming remains readable and predictable overall.

Tool Count4/5

Sixteen tools is slightly above the ideal 3-15 range, but the server covers several utility domains and each tool has a concrete, non-redundant purpose. It feels broad but not bloated, and the meta tools help offset the count by keeping the full catalogue discoverable.

Completeness4/5

The set covers its apparent domains well: EDI has build/parse/validate, time has current/convert/diff/window/cron, JSON has query/repair, and the tool catalogue has search/describe/call. Minor gaps exist, such as no generic HTTP request tool or broader JSON transformation, but these appear deliberate rather than accidental.

Resources