Skip to main content
Glama

Compl-AI-ance

doccontrol_upsert_document

Ein gelenktes Dokument anlegen (ohne id) oder ändern (mit id); remove = true löscht weich. document_id ist eine Datei aus der Dokumentenablage (Upload über die Seite Dokumente oder doccontrol_upload_text), alternativ ein Link. Eine neue Datei, ein neuer Link oder eine neue Version setzt ein freigegebenes Dokument auf Entwurf zurück.

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

Input Schema

NameRequiredDescriptionDefault
idNo
urlNoAlternativ: Link zum Dokument
ownerNo
titleNo
removeNo
versionNoz. B. 1.0
review_atNoJJJJ-MM-TT
descriptionNo
document_idNoDatei aus der Dokumentenablage
standard_keyNoiso_iec_27001 | iso_iec_42001 | … | both

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/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 behavioral burden and does disclose two non-obvious traits: remove = true is a soft delete, and a new file, link or version resets an approved document back to Entwurf. It does not cover permission/role requirements, whether the soft delete is reversible, or whether omitted fields are preserved or wiped on update — significant gaps for a 10-parameter mutation.

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?

Three dense sentences, front-loaded with the create/modify/delete branching so the agent reads the operational core first. Each sentence carries information, though the second sentence about document_id sources is slightly convoluted.

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 with no annotations and no output schema, the definition covers the core mode selection and the draft-reset side effect but omits return shape, permission prerequisites, partial-update semantics, and any meaning for several fields. Adequate to invoke, not complete enough to predict the outcome.

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?

At 50% schema coverage the description meaningfully compensates: it explains the create-vs-update role of id, the soft-delete semantics of remove, the storage origin of document_id, and that url is a link alternative. However, owner, title, review_at and description are left entirely to the schema, and standard_key gets no contextual explanation.

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 description names the resource (ein gelenktes Dokument) and disambiguates the three modes in one clause: create without id, modify with id, soft-delete when remove = true. An agent can distinguish this from sibling tools like doccontrol_get_document or doccontrol_approve_document 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?

It gives concrete routing guidance for the document_id source ('Upload über die Seite Dokumente oder doccontrol_upload_text') and states the alternative (ein Link / url). What is missing is explicit when-not guidance, e.g. when to prefer a dedicated approve or link-evidence tool over this upsert.

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