Skip to main content
Glama

Schvalit doklad

approve_document
DestructiveIdempotent

Schvali doklad. Vychozi JEN schvali (bez odeslani do ucetnictvi). sendToAccounting=true ho navic odesle do napojeneho ucetniho programu (Pohoda, ABRA Flexi); odeslani nejde vzit zpet a uz odeslany doklad se podruhe neposle. Zapise se do historie dokladu.

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": {
      "id": "<id>"
    },
    "name": "approve_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID dokladu z list_documents
commentNoKomentar ke schvaleni
companyIdNoPriradit doklad k firme pri schvaleni
sendToAccountingNotrue = odeslat do ucetniho programu, vychozi false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint and idempotentHint, but the description adds real consequence detail: dispatch cannot be undone, an already-sent document will not be re-sent, and the action is written to document history. It does not say whether the approval itself is reversible (a reject_document sibling exists) or what permissions/errors apply, leaving a modest gap.

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?

Four short sentences, front-loaded with the default behavior before the optional flag. Dense and mostly waste-free, though the opening clause slightly restates the title before adding the 'bez odeslani do ucetnictvi' clarification that actually matters.

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?

No output schema exists, so the description carries the burden, and for a mutating tool with an external side effect it covers the important consequences: default mode, dispatch targets, irreversibility, idempotency and audit history. What remains unaddressed is the return value and whether approval can be reverted, which is minor given the annotations.

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 100%, so the baseline is 3, but the description genuinely enriches sendToAccounting beyond the schema by naming the target accounting systems and its irreversible, non-repeatable nature. The other parameters (comment, companyId, id) are left entirely to the schema.

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 and resource ('Schvali doklad') and immediately narrows scope by defining the default behavior as approval only, without accounting dispatch. It does not explicitly differentiate from siblings like reject_document or update_document, but the core action and its default boundary are unambiguous.

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 context for the key decision an agent faces here: the default call only approves, while sendToAccounting=true adds the accounting dispatch to Pohoda/ABRA Flexi. It does not state when-not to use the tool (e.g. to reject or correct a document instead) or name alternatives, so it stops short of full routing guidance.

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