Skip to main content
Glama

Generate EDIFACT ORDERS

generate_edifact

Generate a syntactically valid EDIFACT ORDERS D.96A interchange from a simple JSON order description. Parties, dates, currency, and line items are automatically enveloped and computed.

Instructions

Generate a syntactically valid EDIFACT ORDERS D.96A interchange (UNA + UNB...UNZ) from a simple JSON order description: parties, dates, currency and line items. Envelopes, escaping and UNT/UNZ counters are computed automatically; the output round-trips through parse_edifact with zero issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buyerNoBuyer party (NAD+BY), id is typically a GLN
itemsYesOrder lines (LIN groups)
senderYesInterchange sender (UNB)
currencyNoISO 4217 currency code (CUX), e.g. EUR
freeTextNoHeader free text (FTX+AAI)
supplierNoSupplier party (NAD+SU)
orderDateYesOrder date, "YYYYMMDD" or "YYYY-MM-DD" (DTM+137)
recipientYesInterchange recipient (UNB)
messageRefNoMessage reference number (UNH/UNT), default 1
orderNumberYesPurchase order number (BGM)
deliveryDateNoRequested delivery date (DTM+2)
deliveryPartyNoDelivery party (NAD+DP)
interchangeRefNoInterchange control reference (UNB/UNZ), default 1
Behavior3/5

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

No annotations are provided, so the description must disclose behaviors. It mentions automatic computation of envelopes, escaping, and counters, and asserts zero-issue round-tripping. It does not address authentication, rate limits, or potential failure modes, leaving some gaps.

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 concise sentences that front-load the core purpose and key behavioral traits. Every sentence adds value without redundancy.

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?

Given the tool's complexity (13 parameters, nested objects) and lack of output schema, the description provides essential context about the output (EDIFACT interchange, round-trip quality) but omits details like return type format, error handling, or performance characteristics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with each parameter documented. The tool description adds value by mapping parameters to EDIFACT segments (e.g., NAD+BY, DTM+137) and summarizing the structure, which goes beyond the raw 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?

The description clearly states the tool generates a syntactically valid EDIFACT ORDERS D.96A interchange from a simple JSON order description. It specifies the resource (EDIFACT ORDERS D.96A format) and the action (generate), distinguishing it from siblings like parse_edifact, which parse EDIFACT.

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 implies usage when you have a JSON order description and need EDIFACT output, and mentions round-trip compatibility with parse_edifact. However, it does not explicitly state when to use this tool versus siblings, nor provides when-not-to-use guidance.

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

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