Skip to main content
Glama

Auftrag anlegen

auftrag_anlegen

Legt einen neuen Auftrag an — mit Titel, optional Beschreibung, Termin, Ort und Kunde. JEDER Auftrag braucht mindestens eine zuständige Person: ohne Angabe wird der Inhaber selbst zugewiesen. Ob die Zugewiesenen eine Benachrichtigung auf ihr Gerät bekommen, hängt davon ab, ob der Betrieb die Aussenwirkung freigegeben hat — in der Vorgabe ist sie AUS. Die Antwort sagt jedes Mal, was tatsächlich hinausging. Legt KEINE Rechnung an und schreibt dem Kunden nichts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ortNoEinsatzort als Text.
endetNoTermin-Ende, JJJJ-MM-TTTHH:MM. Nur zusammen mit `beginnt`.
titelYesKurzer Titel, worum es geht.
beginntNoTermin-Beginn, JJJJ-MM-TTTHH:MM (Ortszeit).
kunde_idNoKennung eines bestehenden Kunden.
mitarbeiterNoKennungen der zuständigen Personen (siehe mitarbeiter_auflisten). Ohne Angabe wird der Inhaber selbst zugewiesen.
beschreibungNoWas zu tun ist.
idempotency_keyNoIm vollautonomen Betrieb erforderlich. Beim ersten Aufruf weglassen: Der Server liefert dann einen UUID-Key, ohne die Aktion auszuführen. Den Aufruf mit diesem Key wiederholen und bei Retry/Reconnect denselben Key verwenden. Eine neue beabsichtigte Aktion braucht einen neuen Key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Im vollautonomen Betrieb erforderlich. Beim ersten Aufruf weglassen: Der Server liefert dann einen UUID-Key, ohne die Aktion auszuführen. Den Aufruf mit diesem Key wiederholen und bei Retry/Reconnect denselben Key verwenden. Eine neue beabsichtigte Aktion braucht einen neuen Key.",
      +  "format": "uuid",
      +  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavioral context beyond the annotations: default assignment to the owner, notification behavior depending on an external setting whose default is off, and the guarantee that the response reports what was actually sent. It also clarifies side-effect boundaries (no invoice, no customer communication), with no contradiction with readOnlyHint=false, openWorldHint=true, or destructiveHint=false.

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?

Four purposeful sentences arranged in order of importance: core action first, mandatory-person rule second, notification side-effect third, and negative scope last. No filler or repetition; the caps on 'JEDER', 'KEINE', and 'AUS' are effective emphasis.

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 create tool with no output schema, the description covers the essential behavioral rules, defaults, and side-effect exclusions, and even previews the response's key content. It leaves the exact response shape unspecified and does not restate the two-step idempotency protocol in the description, though that protocol is well documented in the schema, so a small gap remains.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 8 parameters. The description mostly summarizes fields already visible in the schema and repeats the mitarbeiter default; the notification caveat adds context but is not parameter-level semantics, so the baseline 3 is appropriate.

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 action ('Legt einen neuen Auftrag an') and resource, lists core fields, and adds explicit negative boundaries ('Legt KEINE Rechnung an und schreibt dem Kunden nichts') that separate it from invoice- and communication-related siblings like rechnung_anlegen or rechnung_versenden.

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?

Clearly indicates when to use it (creating a new order) and gives decision-relevant constraints: a responsible person is mandatory, owner is assigned by default, and notifications depend on the Betrieb's Aussenwirkung setting. It does not name alternative tools explicitly (e.g., auftrag_aendern or angebot_anlegen), so the routing is clear but not fully explicit.

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