Skip to main content
Glama

Update Vendor

update_supplier
DestructiveIdempotent

Update a vendor by id. Every field is preserve-on-omit — omitting a field keeps the vendor's current value (it is NOT cleared). Changing name/code/tax/bank re-checks uniqueness. customFields merges per key (see list_custom_fields with entity=businessPartner): omitted keys keep their value, an explicit null clears one, and an unknown fieldName fails the whole call at preview. Only existing vendors are targetable (a non-vendor partner id returns NOT_FOUND). Requires an operator (unpinned) org token.

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": {
      "supplierId": "<supplierId>",
      "input": "<input>"
    },
    "name": "update_supplier"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesFields to change; omitted fields keep their current value.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is changed until the commit call.
supplierIdYesThe vendor id (GUID) to update.
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
codeNo
nameNo
emailNo
previewNo
expiresAtNo
taxNumberNo
isCustomerNo
isSupplierNo
contactNameNo
phoneNumberNo
vatIdNumberNo
actionItemIdNo
confirmationNo
customFieldsNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo
paymentTermsDaysNo
bankAccountNumberNo
defaultLeadTimeDaysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, but the description adds the critical nuance that fields are preserve-on-omit and are NOT cleared, which reframes how destructive this really is. It also discloses the required two-step preview-then-commit flow, uniqueness re-checks on name/code/tax/bank, and the NOT_FOUND behavior for non-vendor ids.

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?

The definition is dense but front-loaded, leading with the operate-by-id purpose and the preserve-on-omit rule before the edge cases. Every sentence carries substantive information, though the packed clauses about customFields and preview make it slightly heavy to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a mutation tool with an output schema and rich annotations, the description still covers the non-obvious gaps: the two-step write protocol, omission semantics, uniqueness validation, custom field merge behavior, and token requirements. Nothing an agent needs to invoke it correctly appears to be missing.

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 coverage is 100%, so the per-field descriptions already carry the baseline. The description adds cross-parameter meaning the schema cannot convey: that preview is step one and must be paired with previewReceipt plus a fresh idempotencyKey to actually commit, and the per-key merge semantics of customFields. Some overlap with the schema's customFields text keeps it from a 5.

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 opening sentence gives a specific verb and resource ("Update a vendor by id") and scopes it to existing vendors only, which cleanly separates it from create_supplier and update_client. An agent can identify the operation and its target without opening the schema.

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?

It states the key selection conditions: only existing vendors are targetable (non-vendor partner ids return NOT_FOUND) and an operator (unpinned) org token is required. It also explains when the preview/commit path applies. It stops short of naming sibling alternatives such as create_supplier for new vendors, so it is strong but not exhaustive guidance.

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