Skip to main content
Glama

upsert_supplier

DestructiveIdempotent

Add or change a supplier. Required: name (which is also the key — an existing name is updated, not duplicated). Optional: address, email, kind, note, active.

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": {
      "name": "<name>"
    },
    "name": "upsert_supplier"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoKind of supplier, e.g. 'lab' or 'material'
nameYesName of the supplier
noteNoFree-text note
emailNoEmail address
activeNoWhether the entry is active
addressNoPostal address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / active / description
      Added value: +"Whether the entry is active"
    • addedInput schema / properties / address / description
      Added value: +"Postal address"
    • addedInput schema / properties / email / description
      Added value: +"Email address"
    • addedInput schema / properties / kind / description
      Added value: +"Kind of supplier, e.g. 'lab' or 'material'"
    • addedInput schema / properties / name / description
      Added value: +"Name of the supplier"
    • addedInput schema / properties / note / description
      Added value: +"Free-text note"
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is supplied. The description does add real context by explaining the key semantics that make it idempotent. However, for a destructive upsert it never says whether optional fields omitted on an update are preserved or wiped, which is the single most consequential behavior left undisclosed.

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?

Two sentences, zero filler, with the required parameter and the crucial key semantics front-loaded. Every clause carries information the agent needs to call it correctly.

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?

With 6 fully documented parameters and no output schema, the description covers the essentials. The remaining gap is behavioral rather than parametric: it does not specify partial-update versus replace semantics for the optional fields on the destructive path, which would be the one addition worth making.

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 baseline is 3, but the description genuinely adds meaning beyond the schema's flat 'Name of the supplier' by defining name as the identity key and spelling out the update-not-duplicate consequence. The optional field list is mostly a restatement of the schema, but the key semantics justify going above baseline.

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?

The description states a specific verb pair ('Add or change') and a concrete resource ('supplier'), and the naming of the sibling upsert_supplier_item is a different resource, so the agent can tell them apart without opening schemas. It stops short of explicitly contrasting with alternatives, but the purpose is unambiguous.

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: 'Add or change a supplier' plus the note that an existing name is updated rather than duplicated tells the agent this is the safe re-run path. There is no explicit when-to-use versus sibling options (e.g. supplier vs supplier-item upserts) and no when-not 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.