Skip to main content
Glama

Save Check Route

pruefweg_put
Destructive

Prüfweg anlegen oder aktualisieren (POST /pruefwege).

DAS IST DAS ERSTE GLIED der Kette Regel -> Prüfweg -> Abweichung ->
belegte Behebung. `pruefweg_run` fährt, was hier angelegt wurde.

DIESES VERB REICHT NUR DURCH. Es prüft NICHTS selbst -- und das ist die
Sicherheitseigenschaft, nicht eine Auslassung: Freischaltung, Befehlsform
und Erwartungsprüfung leben im Core (`routers/pruefwege.py::create_pruefweg`
ruft `_pruefe_allowlist(befehl)` und `erwartung_baum(erwartung)`), und
eine zweite Prüfung hier könnte leise davon abweichen. Wer hier
validierte, baute die Lücke, die er schließen will.

WAS DER CORE VERLANGT (seit dem 13.11.2026, spec/api/pruefwege.md): das
Projekt ist vom Betreiber für Prüfweg-Befehle freigeschaltet (sonst 403),
und der Befehl hat eine FESTE FORM -- `bash`/`python3` mit einem Skript
unter `scripts/ops/`, `cat`, `ls`, `grep`, `test -f`, `git ls-files`,
`git rev-list` oder `gh api <endpunkt>` (nur lesend). Pfade bleiben im
eingerichteten Verzeichnis. Die 422-Meldung nennt den Grund.

GEMESSEN AM ECHTEN ENDPUNKT, damit die Zusicherung belegt ist und nicht
behauptet:
    gültiger Befehl + `returncode == 0`      -> 201
    `rm -rf /`                                -> 422 "nicht auf der Allowlist"
    `cat /proc/self/environ`                  -> 422 "außerhalb des eingerichteten Verzeichnisses"
    nicht freigeschaltetes Projekt            -> 403 "nicht freigeschaltet"
    `__import__('os').system('x')`            -> 422 "enthält 'Call'"
    `returncode.__class__ == 1`               -> 422 "enthält 'Attribute'"
    `mindestens ein Treffer` (parst nicht)    -> 201

DER LETZTE FALL IST ABSICHT, kein Loch: eine Erwartung, die nicht parst,
wird NICHT abgewiesen. Sie ist Prosa für einen Menschen, kann nichts
ausführen, und der daraus folgende Laufzustand heißt dokumentiert
`unklar` -- "die Erwartung selbst ließ sich nicht auswerten"
(spec/api.md; die Kundendoku zeigt genau das als Beispiel). Wer sie hier
abwiese, würde gültige, dokumentierte Eingaben zurückweisen.

Ein bestehender `slug` wird aktualisiert (Upsert im Core), das
Lauf-Ergebnis bleibt dabei stehen. Fehler kommen als ToolError mit dem
Klartext des Cores an -- nie still.

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": {
      "slug": "<slug>",
      "titel": "<titel>",
      "typ": "<typ>",
      "befehl": "<befehl>",
      "erwartung": "<erwartung>",
      "laufumgebung": "<laufumgebung>"
    },
    "name": "pruefweg_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
typYes
chatNoChat token returned by `persona_waehlen`. With it, the call acts as the persona of that chat; without it, as the unbound connection (Chat-Token aus `persona_waehlen`: mit ihm handelt der Aufruf als die Persona dieses Chats, ohne ihn als die ungebundene Verbindung).
slugYes
titelYes
befehlYes
erwartungYes
laufumgebungYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag mutation/destructiveness, and the description goes beyond them: it discloses that the tool validates nothing itself (the core does, via _pruefe_allowlist and erwartung_baum), the 403 precondition of an operator-enabled project, the allowlist of allowed command forms, and that errors surface as ToolError with the core's plaintext rather than failing silently. It also notes that a slug collision overwrites the route while the run result persists. What it does not spell out is that the other existing fields are replaced wholesale on update, which is the main remaining destructive-behavior gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the measured-response table is genuinely useful evidence, but the text is long and repeatedly argues its own design point ('und das ist die Sicherheitseigenschaft, nicht eine Auslassung', 'DER LETZTE FALL IST ABSICHT, kein Loch', 'der baute die Lücke, die er schließen will'). Those defensive justifications consume space without changing how the agent should call the tool.

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 7-parameter mutating tool, the description covers the important behavioral territory: precondition (project freigeschaltet), validation source, accepted command forms, documented 422/403 outcomes, upsert behavior, and error propagation. With an output schema present it need not explain return values. The missing treatment of `typ` and `laufumgebung` keeps it from being complete.

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 only 14% (just `chat` is documented), so the description must carry the burden. It meaningfully explains `befehl` (fixed command forms, paths confined to the configured directory) and `erwartung` (non-parsing expectations are accepted as prose and yield the documented `unklar` state), plus upsert semantics for `slug`. But `typ`, `titel`, and `laufumgebung` get no explanation at all, so significant coverage gaps remain.

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?

The first line states the exact operation ('Prüfweg anlegen oder aktualisieren (POST /pruefwege)') and the following paragraph places it as the first link in the Regel -> Prüfweg -> Abweichung chain, explicitly relating it to pruefweg_run ('fährt, was hier angelegt wurde'). The create/update verb pair plus the endpoint make its scope unmistakable.

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 tells the agent clearly when to reach for this tool versus pruefweg_run: this one creates/updates the route, pruefweg_run executes it. Upsert-on-existing-slug behavior is also stated, which is a usage-relevant rule. There's no explicit 'do not use for X' exclusion, so it stops short of a 5.

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.