Skip to main content
Glama

Compl-AI-ance

internalaudit_upsert_finding

Eine Feststellung zu einem Audit erfassen (ohne id, mit audit_id) oder ändern (mit id); remove = true löscht weich. Art nonconformity | observation | opportunity. create_capa = true legt bei einer Nichtkonformität im selben Schritt die Korrekturmaßnahme im Log an.

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": "internalaudit_upsert_finding"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
kindNononconformity | observation | opportunity
clauseNoKapitel oder Maßnahme, z. B. 7.5 oder A.8.15
removeNo
audit_idNoPflicht beim Anlegen
evidenceNoWorauf die Feststellung beruht
capa_ownerNo
capa_due_atNoJJJJ-MM-TT
create_capaNoBei einer Nichtkonformität sofort eine Korrekturmaßnahme anlegen
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/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 it does disclose two important behaviors: remove=true performs a soft delete rather than a hard one, and create_capa triggers a corrective-action log entry as a side effect. It says nothing about required permissions, what an update does to fields not supplied, or how conflicts or failures are reported.

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?

One semicolon-delimited sentence, front-loaded with the primary create-or-update decision, then the delete flag, then the kind enumeration, then the side effect. Dense but every clause carries information; the telegraphic style is slightly harder to parse than a short bulleted structure 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 ten-parameter mutation tool with no annotations and no output schema, the definition covers the decision-critical parts: mode branching, soft-delete semantics, the kind enumeration and the CAPA side effect. Gaps remain around update semantics (partial vs full payload) and authorization, which an agent would need in edge cases.

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?

Schema coverage is only 60%, so the description must compensate, and it does for the highest-risk parameters: it explains the id/audit_id convention that the schema does not, defines the three values of kind, and clarifies remove and create_capa. The capa_owner, capa_due_at, evidence, clause and description parameters receive no additional meaning in prose, leaving a modest gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb and resource (a finding on an audit) and spells out the three operating modes: create without id, modify with id, soft-delete with remove=true. It also implicitly separates itself from internalaudit_raise_capa by stating that create_capa creates the corrective action in the same step, though no sibling is named outright.

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?

Mode selection is explicit and conditional: id absent plus audit_id present means create, id present means update, remove=true means delete, create_capa=true only applies to a nonconformity. This effectively routes the agent away from a separate CAPA call, but there is no explicit statement of when not to use the tool.

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