Skip to main content
Glama

Get EDI Transaction

get_edi_transaction
Read-only

Open one EDI transaction: its fields, the readable rendering of the document, the parsed JSON, validation errors and the raw X12 (cut at 20,000 characters). Requires an operator (unpinned) credential.

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": {
      "transactionId": "<transactionId>"
    },
    "name": "get_edi_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactionIdYesTransaction id (GUID) from list_edi_transactions.

Output Schema

NameRequiredDescriptionDefault
idNo
sentAtNo
statusNo
createdAtNo
directionNo
invoiceIdNo
rawContentNo
retryCountNo
shipmentIdNo
lastRetryAtNo
processedAtNo
documentTypeNo
errorMessageNo
salesOrderIdNo
controlNumberNo
parsedContentNo
acknowledgedAtNo
tradingPartnerIdNo
validationErrorsNo
tradingPartnerNameNo
purchaseOrderNumberNo
rawContentTruncatedNo
humanReadableContentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description still adds two non-obvious traits: the raw X12 body is truncated at 20,000 characters, and an operator (unpinned) credential is required. Those are exactly the facts an agent needs before calling; only output size/pagination behavior is left unstated.

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?

A single dense sentence that front-loads the action and then lists the payload contents, followed by the one prerequisite that matters. Nothing is redundant or padded.

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?

With an output schema present the description needn't enumerate return fields, yet it usefully flags truncation and the credential requirement. The only gap is whether truncation also affects the parsed JSON or just the raw X12, which an agent might want to know.

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% and the single transactionId parameter is already documented as a GUID sourced from list_edi_transactions. The description adds no format hints or constraints beyond that, so the baseline of 3 applies.

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?

States a specific verb and resource ('Open one EDI transaction') and enumerates exactly what comes back: fields, readable rendering, parsed JSON, validation errors, and raw X12. The singular 'one' plus the 'from list_edi_transactions' reference in the schema clearly separates it from the listing sibling.

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?

Usage is only implied: you fetch a single transaction by id, presumably after listing them. There is no explicit when-to-use/when-not guidance and no named alternative for the overview-level view (get_edi_overview), so the agent must infer the routing.

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