Skip to main content
Glama

util_x12

Read-only

X12 EDI Parser — Offline ANSI X12 EDI parser and validator. Detects delimiters from the ISA header (element, component, repetition, segment terminator incl. CR/LF), walks ISA/IEA, GS/GE and ST/SE envelopes and checks control numbers and counts (SE01 segment count, GE01, IEA01), flags missing trailers and GS functional-ID mismatches, and returns business summaries: 850/875 purchase orders (PO number, lines, quantities, extended total, CTT check), 810/880 invoices (lines vs TDS total, SAC allowances/charges), 856 ASN (BSN, HL hierarchy, carrier, BOL, PO numbers), 855, 997/999 acknowledgments (accepted/rejected sets with AK3/AK4 errors), 835 remittance (payment, trace, claims charged/paid), 837 claims (professional/institutional/dental, totals, billing NPI), 834 enrollment, 270/271, 276/277, 820, 204, 214, 846, 990. Pass the interchange in text= (URL-encoded); segments=1 returns every parsed segment. Price: $0.004 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "util_x12"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesISA*00* *00* *ZZ*SENDERID *ZZ*RECEIVERID *231001*1200*U*00401*000000001*0*P*>~GS*PO*SENDER*RECEIVER*20231001*1200*1*X*004010~ST*850*0001~BEG*00*SA*PO12345**20231001~PO1*1*10*EA*2.50**UP*012345678905~CTT*1~SE*5*0001~GE*1*1~IEA*1*000000001~

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the read-only, non-destructive annotations, the description discloses delimiter detection from ISA, envelope walking, control-number/count validation, missing trailer and GS functional-ID checks, and business summaries per transaction type. This is unusually rich behavioral context for an annotated read-only tool.

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 purpose is front-loaded and the transaction-set enumeration earns its place by showing supported business summaries. However, it is a dense run-on sentence, and the unsupported segments=1 reference slightly undercuts 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?

For a complex parser with no output schema, it does well by summarizing returned business fields across transaction sets and describing validation behavior. It still lacks output format details and error-response behavior, and the phantom segments parameter leaves a gap.

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% and the text property already includes a full X12 example. The description adds the URL-encoding requirement, but its reference to segments=1 does not correspond to any schema property, creating ambiguity about how to request raw segments.

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 and resource: an offline ANSI X12 EDI parser and validator. It enumerates supported transaction sets and distinguishes this tool from generic JSON/XML/CSV conversion siblings by domain and validation behavior.

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

Usage Guidelines4/5

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

It gives clear invocation context: pass the interchange in text= URL-encoded, and use segments=1 for every parsed segment. It does not explicitly compare against siblings or state when-not-to-use, but the X12 EDI context is unambiguous.

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