Skip to main content
Glama

Compl-AI-ance

agents_update_permissions

Für einen Agenten erfassen, welche Werkzeuge seine Aufgabe braucht (needed_tools), welche irreversibel sind und nur mit Freigabe laufen dürfen (irreversible_tools), die Audit-Log-Quelle, den Zweck und das KI-System im Inventar. Optional die Werkzeugregeln angleichen: grant_needed gibt Benötigtes frei (irreversibles als approval), enforce_approval setzt irreversible von allow auf approval, revoke_unneeded entzieht nicht Benötigtes.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "agents_update_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
purposeNo
agent_idYes
system_idNoKI-System im Inventar, zu dem der Agent gehört; leer = keins
grant_neededNo
needed_toolsNoWerkzeugnamen, die die Aufgabe braucht
revoke_unneededNo
audit_log_sourceNoWoher das Audit-Log kommt; Vorgabe: mcp_audit_events
enforce_approvalNo
irreversible_toolsNoWerkzeugnamen mit irreversiblen Folgen — ohne Angabe die Vorschlagsliste des Regelwerks

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does add real behavior: gran_needed grants required tools (with irreversible ones as approval), enforce_approval flips irreversible tools from allow to approval, and revoke_unneeded removes tools. That is unusually explicit for a mutation tool, but it omits whether needed_tools replaces or merges existing entries, whether revoke is destructive/irreversible, required permissions, and idempotency.

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?

The core recording action is front-loaded, followed by the optional rule-alignment flags, so an agent can stop reading after the first clause if it only wants to record data. It is a single dense paragraph with long German sentences but no filler beyond that.

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

Completeness3/5

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

For a 10-parameter mutation tool with no annotations and no output schema, the definition covers parameter meaning and per-flag effects reasonably well. It still leaves gaps a caller would want: merge-vs-replace semantics for the tool arrays, expected response shape, and prerequisite permissions.

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 40%, but the description compensates well by explaining the three boolean switches (grant_needed, enforce_approval, revoke_unneeded) that the schema leaves undocumented, and by tying needed_tools/irreversible_tools/audit_log_source/system_id to their meaning. Only the trivial note and agent_id fields are left without any explanation.

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 the resource (an agent's permissions) and the concrete fields it records (needed_tools, irreversible_tools, audit_log_source, purpose, system_id) plus an optional rule-alignment step. It is specific enough to distinguish a recording/rule-update operation, though it never contrasts itself with the sibling list_agent_tool_permissions, so an agent must infer the read/write split.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'Optional' signals that grant_needed/enforce_approval/revoke_unneeded are secondary to the recording action, giving a mild conditional cue. However, there is no explicit statement of when to call this versus the list tool or when-not to call it, and no prerequisites are named, so usage is mostly implied.

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