Skip to main content
Glama
heocoi

edi-mcp

by heocoi

Parse EDI to JSON

parse_edi

Convert raw X12 or EDIFACT documents into structured JSON with envelope metadata, functional groups, and transaction segments for field-level access.

Instructions

Parse a raw X12 or EDIFACT document (auto-detected) into structured JSON: envelope metadata, functional groups, transactions and their segments. Use this when you need to read individual fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesRaw EDI document text: an X12 interchange (ISA...IEA) or EDIFACT interchange (UNA/UNB...UNZ)
Behavior2/5

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

No annotations are provided, so the description bears the full burden. It explains the parsing behavior and auto-detection but omits critical details like side effects, authentication needs, error handling, or what happens with invalid input, which are important for an AI agent.

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?

The description is two sentences with no extraneous words. It front-loads the primary action and output structure, making it easy for an AI agent to quickly grasp the purpose.

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?

For a parsing tool with one parameter and no output schema, the description covers the input format, auto-detection, and output structure adequately. It lacks details on edge cases or error behaviors but is sufficient for common usage.

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?

The input schema covers 100% of the single parameter 'content' with a description. The tool's description largely echoes this schema description, adding minimal extra meaning. Baseline 3 is appropriate.

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 states the verb 'parse', the resource 'EDI document', and the outcome 'structured JSON' with details on components (envelope, groups, transactions). It also notes auto-detection between X12 and EDIFACT, making the purpose specific and distinct from sibling tools like validate_edi.

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 includes 'Use this when you need to read individual fields', which implies a usage context. However, it does not explicitly state when not to use it or mention alternative tools, leaving room for interpretation.

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/heocoi/edi-mcp'

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