Skip to main content
Glama

Update Task Status

auftrag_status
Destructive

Setzt den Status eines Auftrags (POST /agents/nachrichten/{id}/status).

`status` ist offen/angenommen/erledigt/abgelehnt/abgeloest — der Empfänger einer
Auftrags-Nachricht setzt ihn, `notiz` ist ein optionaler Freitext dazu. Unbekannte `id` ->
404, durchgereicht.

**ERLEDIGT MIT ERGEBNIS:** wer einen Auftrag erledigt, kann sagen, WOHIN das Ergebnis
gegangen ist -- als Verweis, nicht als Freitext: `ergebnis_art` ist `pr` (Nummer oder
Adresse eines Pull Requests), `dokument` (Slug) oder `aussage` (Nummer), `ergebnis_ref` der
Verweis selbst. Beide zusammen oder keines; Dokument und Aussage müssen in diesem Projekt
vorhanden sein (sonst 422). Ein Ergebnis hat nur ein erledigter Auftrag.

**ABGELOEST:** ein Auftrag, der durch einen neuen überholt ist, bekommt `status="abgeloest"`
und MUSS `abgeloest_durch` nennen -- die Nummer des Auftrags, der jetzt gilt (ein anderer
Auftrag dieses Projekts, der selbst nicht abgelöst ist). Gelöscht wird nichts. Abgelöst ist
ein Endzustand (409 bei jedem Versuch, ihn zu verlassen): für denselben Wunsch legt man einen
neuen Auftrag an.

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": {
      "id": "<id>",
      "status": "<status>"
    },
    "name": "auftrag_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
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).
notizNo
statusYes
ergebnis_artNo
ergebnis_refNo
abgeloest_durchNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations it discloses concrete runtime behavior: 404 for unknown id passed through, 422 when the referenced Dokument/Aussage is not in this project, 409 for any attempt to leave the terminal abgeloest state, and that resolution requires creating a new Auftrag. It also clarifies that the mutation deletes nothing, which correctly frames why destructiveHint=true applies to irreversible state, not data removal.

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?

The core action and endpoint are front-loaded, then bolded headings separate the ERLEDIGT and ABGELOEST cases so an agent can scan directly to the branch it needs. Despite its length, every sentence supplies a constraint, an error code, or a validation rule.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a state-mutating tool with a terminal state and conditional fields, the description covers validation, error responses, irreversibility, and field coupling. Return values need not be explained because an output schema exists.

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?

With only 14% schema description coverage, the description carries the burden and does: it enumerates the five status values (the schema has no enum), the three ergebnis_art values with their referent types, the meaning of abgeloest_durch, and the coupling constraint between ergebnis_art and ergebnis_ref. Only `id` (string-or-integer) and the `chat` persona token are left unelaborated, and `chat` is already documented in the schema.

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 a specific verb ("Setzt den Status"), the affected resource ("eines Auftrags") and the underlying endpoint (POST /agents/nachrichten/{id}/status). It also states who may act ("der Empfänger einer Auftrags-Nachricht"), which separates it from sibling senders like auftrag_senden without naming them.

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?

The description gives explicit conditional rules per case: "erledigt mit Ergebnis" requires both ergebnis_art and ergebnis_ref or neither, and status="abgeloest" MANDATES abgeloest_durch. It does not name an alternative sibling tool for related operations (e.g. viewing an Auftrag), so it stops short of full when/when-not routing.

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.