Skip to main content
Glama

Delete EDI Trading Partner

delete_edi_trading_partner
Destructive

Delete an EDI trading partner by id, as the EDI screens do (a soft delete), together with its item mappings and the document mappings scoped to it. Its transactions are kept as history. The preview counts each. 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": {
      "id": "<id>"
    },
    "name": "delete_edi_trading_partner"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe trading partner id (GUID) to delete.
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.1/5.0
Behavior5/5

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

Goes well beyond the annotations, which only say destructiveHint=true and idempotentHint=false. It discloses that the delete is a soft delete, that cascading removal hits item mappings and document mappings scoped to the partner, that transactions are retained as history, and that an operator (unpinned) credential is required — all material facts an agent could not derive from the structured fields.

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?

Five short sentences, front-loaded with the action and cascade scope, then behavior, then the credential requirement. Every sentence carries information, though 'The preview counts each' is cryptic enough to require a re-read and slightly weakens an otherwise tight structure.

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 cascading delete, the definition covers side effects, retained data, and auth requirements, and an output schema exists so return-shape detail is unnecessary. The only gap is that the required two-step preview/commit flow lives entirely in the schema and the description's one-line preview hint is ambiguous.

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 the schema already documents id, preview, idempotencyKey and previewReceipt, including the two-step write. The description adds only 'The preview counts each', which hints the preview reports per-category affected counts but is too terse to add real meaning. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Delete an EDI trading partner by id') and immediately defines the cascade scope: the partner plus its item mappings and the document mappings scoped to it. This separates it from the sibling 'delete_edi_item_mapping', which removes only a mapping, without the agent needing to open either schema.

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 implied rather than stated: 'as the EDI screens do' sets parity with the UI, and the credential note signals a prerequisite. There is no explicit when-to-use/when-not guidance or named alternative (e.g. deleting a mapping alone versus the whole partner), so routing between this and the mapping-level delete is left to inference.

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