Skip to main content
Glama

Save voucher

save_voucher

Owner/admin only. Create or update a voucher code for a store (one code per order, discount on goods value without shipping). art 'prozent' (wert 0–100) or 'betrag' (EUR). Optional: mindestwert (min goods value), gueltig_ab/gueltig_bis (YYYY-MM-DD), max_einloesungen (total), max_je_kunde, kategorien (category ids; empty = all), notiz. With id + only aktiv:false/true it just (de)activates.

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

Input Schema

NameRequiredDescriptionDefault
idNo
artNo
codeNo
wertNo
aktivNo
notizNo
store_idYes
gueltig_abNo
kategorienNo
gueltig_bisNo
mindestwertNo
max_je_kundeNo
max_einloesungenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish this is a non-read-only, non-idempotent, non-destructive, closed-world mutation. The description goes further with authorization level, the discount basis (goods value excluding shipping), the one-code-per-order constraint, and the special activate/deactivate behavior — context not derivable from the structured fields. It stops short of saying whether an update replaces unspecified fields or how errors surface, which keeps it off a 5.

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?

Two dense sentences, front-loaded with the permission gate and core action, then the optional-field inventory and the activation shortcut. It is telegraphic and mixes German field labels into English prose ('art', 'wert', 'mindestwert'), which is terse but still parseable; nothing is redundant.

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?

For a 13-parameter mutation with no output schema and no annotation-level detail, the description covers field semantics and the activation mode well but omits update semantics (partial vs full replacement, behavior when id is supplied alongside new values), return value or confirmation shape, and validation failure behavior. Adequate to invoke it, incomplete for predicting its effects.

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 0%, so the description must carry parameter meaning and it largely does: art values with the 0–100 percent range and EUR basis for 'betrag', date formats (YYYY-MM-DD) for gueltig_ab/gueltig_bis, max_einloesungen as a total vs max_je_kunde per customer, kategorien as category ids with empty meaning all, and mindestwert as a minimum goods value. Only 'code' and 'store_id' receive no explanation (format, uniqueness, precedence when creating), leaving a modest gap across 13 parameters.

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 pair and resource ('Create or update a voucher code for a store') plus the economic scope ('discount on goods value without shipping'), which distinguishes it from the other save_* tools such as save_partner or save_newsletter_campaign. It also discloses the dual create/update nature of the same endpoint up front.

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?

Gives an explicit caller prerequisite ('Owner/admin only') and a mode-selection rule: passing id with only aktiv:false/true switches the tool into a pure (de)activation path. No sibling alternative is named, but the resource is unique among the siblings, so the absence of exclusions is a minor gap rather than a real ambiguity.

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