Skip to main content
Glama

Parse ANSI X12 Healthcare EDI

parse_x12_edi

Parse or validate ANSI X12 EDI healthcare transactions (837P claims, 835 remittance advice, 270/271 eligibility) into structured JSON with interchange envelopes, delimiters, SNIP validation levels 1-4, and per-segment error diagnostics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ediYesRaw ANSI X12 EDI text (interchange envelope included)
operationNoOperation to run: "parse" (default) returns structured JSON, "validate" runs envelope and SNIP checks
snipLevelNoSNIP validation level 1-4 (validate operation)
validateSnipNoRun SNIP type validation during parse

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description bears the full behavioral burden. It does disclose useful behavior: output is structured JSON with interchange envelopes, delimiters, SNIP levels 1-4, and per-segment error diagnostics. It does not mention authentication, input size limits, error exception behavior, or whether validation is strict or advisory.

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 a single front-loaded sentence with no filler. It packs a lot into one sentence, which slightly reduces readability, but every clause provides substantive information about scope and output.

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?

Despite having no output schema or annotations, the description summarizes the return shape (structured JSON with envelopes, delimiters, diagnostics) and the validation modes. It could say more about error responses or operation defaults, but it is largely complete for this parser/validator.

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%, so all four parameters are already documented in the input schema. The description mentions SNIP levels and parse vs validate, but adds no syntax, constraints, or defaults beyond what the schema provides. 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 states a specific verb pair (parse or validate) and resource (ANSI X12 EDI healthcare transactions), then enumerates the transaction types (837P, 835, 270/271) and outputs. This is specific enough to distinguish it from siblings like parse_iso20022, which handles a different standard.

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 domain (healthcare X12 EDI) implicitly indicates when to use this tool, and the operation parameter clarifies parse vs validate. However, there is no explicit when-to-use guidance, no mention of prerequisites, and no routing to alternatives such as validate_dscsa or parse_iso20022.

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