Skip to main content
Glama

Compl-AI-ance

capa_upsert_entry

Eine Nichtkonformität mit Korrekturmaßnahme anlegen (ohne id) oder ändern (mit id); remove = true löscht weich. Quelle audit_finding | incident | management_review | complaint | other mit source_ref. Status nur vorwärts open → in_progress → verified → closed; verified verlangt die Wirksamkeitsprüfung (Datum und Ergebnis), closed eine geprüfte Maßnahme.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "capa_upsert_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
ownerNo
titleNo
due_atNoJJJJ-MM-TT
removeNo
sourceNoaudit_finding | incident | management_review | complaint | other
statusNoopen | in_progress | verified | closed
correctionNoSofortkorrektur
root_causeNoUrsache
source_refNoid der Feststellung, des Vorfalls oder der Bewertung
descriptionNo
standard_keyNoiso_iec_27001 | iso_iec_42001 | … | both
corrective_actionNoKorrekturmaßnahme gegen die Ursache
effectiveness_resultNoErgebnis der Wirksamkeitsprüfung
effectiveness_checked_atNoJJJJ-MM-TT

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 no annotations at all, the description carries the full burden and does so well: it discloses that remove is a soft delete, that status transitions are strictly forward-only, and that verified/closed have hard preconditions (effectiveness date+result, a verified action). It omits permission requirements and whether unspecified fields are overwritten on update.

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?

Front-loaded with the create/update/delete dispatch, then the source rule, then the status lifecycle — every clause earns its place. The semicolon-dense packing makes it slightly harder to parse than separate sentences would be.

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 15-parameter, zero-annotation mutation tool with no output schema, it covers the risky parts (deletion semantics, status preconditions, source pairing) that would otherwise be invisible. It leaves the simpler fields (owner, title, due_at, standard_key) and the response shape implicit, which is acceptable given their plain names and schema hints.

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?

Beyond the 67%-covered schema it adds genuine relational meaning: id presence selects create vs update, remove triggers soft deletion, source must be paired with source_ref, and status gates which of effectiveness_checked_at/effectiveness_result become mandatory. That is meaning the schema alone cannot convey.

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 pair (Nichtkonformität/Korrekturmaßnahme anlegen oder ändern) and even disambiguates the two write modes by id presence and the soft-delete via remove=true. An agent can distinguish this write tool from the read siblings capa_get_entry and capa_list_entries 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?

Gives clear operative rules: create when no id is supplied, update when id is supplied, soft-delete when remove=true, plus the allowed source values and the forward-only status path. It stops short of routing between this tool and a related sibling such as internalaudit_raise_capa, so no explicit alternative is named.

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