Skip to main content
Glama

Delete EDI Item Mapping

delete_edi_item_mapping
Destructive

Delete an EDI item mapping by id, as the EDI screens do (a soft delete). 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_item_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe item mapping 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

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description adds genuinely new context by disclosing that the delete is soft (records are not physically removed) and that an operator, unpinned credential is needed. It omits the mandatory preview-then-commit write sequence, which is the most consequential behavioral trait, though the schema documents it per-parameter.

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?

One compact sentence pair, front-loaded with the action and target, with the soft-delete caveat and credential requirement appended in order of importance. 'As the EDI screens do' is slightly vague but is doing real work by signaling UI parity, so there is little wasted wording.

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?

Output schema and annotations are rich, and the schema fully explains the two-step preview/commit flow, so the description needn't restate return values. However, an agent reading only the description would plausibly call with just an id and be refused, since the required preview/previewReceipt/idempotencyKey sequence is the tool's defining constraint and is left entirely to the schema.

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 every parameter including preview, idempotencyKey, and previewReceipt is already fully explained in the schema. The description adds no parameter-level detail (e.g., GUID format or what the receipt binds to) beyond what is structured, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 item mapping by id') and adds a qualifier that changes the meaning of the operation ('a soft delete'). This clearly separates it from save_edi_item_mapping and list_edi_item_mappings, though it never names an alternative explicitly.

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 gives an implicit usage anchor ('as the EDI screens do') and a prerequisite ('Requires an operator (unpinned) credential'), but it does not say when to choose this over save_edi_item_mapping for retiring a mapping, nor when deletion should be avoided. Guidance is present but inferred rather than stated.

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