Skip to main content
Glama

Redigera dokument

edit_document
DestructiveIdempotent

Redigera ett dokuments metadata (namn, kategori, kopplade bolag). Bara angivna fält ändras. Synlighet och LLM-delning styr vad assistenten får läsa och vem som ser dokumentet; de sätts bara i Kvickd-appen, inte via MCP. Scope manage_documents. Argument: doc_id; valfritt name, category, companies (lista med org.nr).

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": {
      "doc_id": "<doc_id>"
    },
    "name": "edit_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
doc_idYes
categoryNo
companiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, yet the description adds real value: partial-update behavior ('Bara angivna fält ändras') and the exclusion of visibility/LLM-sharing from MCP. It does not warn that edits are destructive or state rollback behavior, so not a 5.

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 dense but front-loaded paragraph: what it does, then the partial-update rule, then the exclusion, then scope and arguments. Ordering is good; the field list appended at the end is slightly redundant with the opening sentence.

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 4-parameter mutation with no output schema, the description covers purpose, partial-update behavior, scope requirement, per-parameter meaning and a key exclusion. Missing only edge-case behavior (e.g. unknown doc_id or invalid org.nr) and confirmation of effect on already-linked companies.

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 0% and the schema gives only bare titles, but the description compensates: doc_id as the required identifier, optional name/category, and companies as a list of organisation numbers (org.nr) — meaning the schema does not convey. Still thin on format constraints (e.g. allowed categories).

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?

States a specific verb (Redigera) plus resource (dokumentets metadata) and enumerates the editable fields (namn, kategori, kopplade bolag), so an agent can tell it apart from list_documents/delete_document without opening the schema. It lacks an explicit sibling callout, which keeps it from a 5.

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 usage context: only supplied fields are changed (partial-update semantics), manage_documents scope is required, and it explicitly states that visibility and LLM-sharing cannot be set through MCP — an effective 'when not to use this' for those fields. No comparison to a dedicated alternative edit path, though.

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.