Skip to main content
Glama

Save EDI Trading Partner

save_edi_trading_partner
Destructive

Create or edit one EDI trading partner. Omit id to create (name required; a new partner is active and in test mode unless set); pass id to edit, where every omitted field keeps its value. Codes are unique per tenant. Connection settings (VAN, AS2 or SFTP credentials) are not set here: an edit keeps them, and they are entered in the app. 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": {
      "input": "<input>"
    },
    "name": "save_edi_trading_partner"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe trading partner id (GUID) to edit; omit to create.
inputYesThe fields to set.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
deletedNo
previewNo
removedNo
expiresAtNo
identifierNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), the description discloses defaults for new records (active, test mode), patch-style merge behavior on edit ('every omitted field keeps its value'), tenant-scoped code uniqueness, and an operator (unpinned) credential requirement. It omits the mandatory two-step preview/commit safety flow, which is the one major behavioral trait left only to the schema.

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?

Four dense sentences, front-loaded with the create/edit decision, then constraints, then scope exclusions, then the auth requirement. No sentence is redundant and none repeats the parameter list.

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 destructive nested-object write tool with an output schema and fully documented params, the description covers modes, defaults, merge behavior, uniqueness, and auth. The gap is that the required preview-then-commit workflow is never mentioned in prose, so an agent reading only the description would not know a write is refused without a receipt.

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%, so the baseline is 3. The description does add semantics the schema lacks, notably that omitting a field on edit preserves its value and that name is required only on create, but it does not touch preview, previewReceipt, or idempotencyKey, which the schema already documents in detail.

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?

Opens with a specific verb and resource ('Create or edit one EDI trading partner') and immediately splits the two modes by the presence of id. An agent can distinguish this from delete_edi_trading_partner and list_edi_trading_partners on the verb alone.

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?

Gives explicit branching guidance (omit id to create with name required; pass id to edit with merge semantics) and explicitly excludes connection/credential settings, pointing to the app instead. It does not name a sibling alternative, but the create-vs-edit and in-app-vs-API distinctions cover the practical decision points.

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