Skip to main content
Glama

Decide dealer

decide_dealer

Händlerantrag freigeben (status frei, rabatt = Händlerrabatt in % auf alle Stückpreise im Checkout) oder ablehnen (status abgelehnt, notiz = Begründung an den Kunden). auf_rechnung=true erlaubt dem Händler Kauf auf Rechnung (nur wirksam, wenn der Shop es anbietet: zahlarten.b2b.rechnung). Schickt eine Mail. Nur Inhaber/Admins; vorher mit dem Menschen abstimmen.

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": {
      "dealer_id": "<dealer_id>",
      "status": "<status>"
    },
    "name": "decide_dealer"
  }
}

Input Schema

NameRequiredDescriptionDefault
notizNo
rabattNo
statusYes
dealer_idYes
auf_rechnungNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With readOnlyHint=false and destructiveHint=false already declared, the description still contributes non-obvious behavior: it sends an email to the dealer as a side effect, it needs owner/admin authorization, and the auf_rechnung flag silently no-ops unless the shop setting is enabled. It does not say whether a repeated call re-sends the mail or whether the decision can be revised, which keeps it short of a 5 given idempotentHint=false.

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?

A single dense paragraph that front-loads the action and attaches each optional parameter to the branch it belongs to, so no sentence is waste. Parenthetical stacking of condition on condition slightly taxes readability, but nothing is redundant.

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?

Covers the mutation's side effects, authorization, cross-setting dependency, and per-branch parameter meaning for a 5-parameter tool with no output schema and no schema descriptions. Remaining gaps—return value, repeat-invocation behavior, what happens to an already-decided application—are modest given annotations declare the non-idempotent, non-destructive profile.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the full burden and largely does: rabatt is defined as a dealer discount in percent applied to all unit prices in checkout, notiz as the reason sent to the customer, status as the approve/reject switch, and auf_rechnung as a conditional account-purchase permission. Only dealer_id goes unexplained, which is self-evident from the tool name.

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+resource and splits it into its two mutually exclusive branches, mapping the status enum values 'frei' (approve) and 'abgelehnt' (reject) directly onto the action. An agent knows exactly what the tool does and which lever each enum value pulls, 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?

Adds real preconditions: 'Nur Inhaber/Admins' (permission bar) and 'vorher mit dem Menschen abstimmen' (confirm with the human first), plus a conditional gate that auf_rechnung only takes effect when the shop enables zahlarten.b2b.rechnung. What is missing is any explicit naming of an alternative tool for a different dealer workflow, but the when-to-use conditions themselves are clear.

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