Skip to main content
Glama

Create Vendor

create_supplier

Create a vendor. Name is required and must be unique within the tenant; code, tax number and bank account (when supplied) must be unique too. Set defaultLeadTimeDays (0-365) to give the reorder engine a fallback lead time. Pass customFields to set tenant-defined custom field values (see list_custom_fields with entity=businessPartner); an unknown fieldName fails the whole call at preview. The partner is created with the vendor role. Requires an operator (unpinned) org token. Returns the created vendor, whose id is what you attach per-item vendor terms to.

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": "create_supplier"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe vendor to create (name required).
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is created 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
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.2/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) the description discloses the things an agent actually needs: the vendor is created with the vendor role, an unknown customFields fieldName fails the entire call at preview, an operator unpinned token is required, and the returned id is the key for attaching per-item vendor terms. That is genuine behavioral context, not a restatement of the hints.

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?

Front-loaded with the core action, then constraints, then the auth requirement and return-value usage. It is dense and mostly earned, though the single long sentence about uniqueness of code/tax number/bank account packs three rules together and could be split for scanability.

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 nested-input mutation with an output schema (so return shape needn't be explained), the description covers the required preconditions, the failure mode on bad custom fields, and the auth scope. The two-step preview/commit lifecycle is documented in the schema, not the description, so an agent skimming only the description would miss that writes require preview+receipt.

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 baseline is 3; the description earns one more by linking parameters across tools — customFields must be looked up via list_custom_fields with entity=businessPartner, defaultLeadTimeDays feeds the reorder engine fallback, and the returned id is what per-item vendor terms attach to. Some of this (0-365, reorder fallback) duplicates the schema text rather than adding to it.

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?

"Create a vendor" is a specific verb+resource, and the description immediately qualifies the operation with uniqueness constraints and the fact that the record is created with the vendor role. It is unambiguous what gets made, but it never names a sibling (e.g. update_supplier) to sharpen the create-vs-modify boundary.

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 gives clear preconditions for calling: name required, code/tax number/bank account unique within tenant, customFields must reference known fieldNames, and an operator (unpinned) org token is required. It also points at list_custom_fields with entity=businessPartner when you need valid field names. What is missing is any explicit exclusion ('use update_supplier for existing vendors') or guidance on when to skip preview.

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