Skip to main content
Glama

Storno ili refundacija

tezga_storno_ili_refundacija
Destructive

Void an entire fiscal receipt or issue a full/partial refund by locating the original via documentId or externalId; production confirmation required.

Instructions

vrsta=storno poništava ceo račun (pogrešno izdat, bez podataka kupca). vrsta=refundacija vraća novac, celu ili po stavkama. Original se nalazi po documentId ili po externalId. U produkciji traži potvrdiProdukciju=true.

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": {
      "vrsta": "<vrsta>"
    },
    "name": "tezga_storno_ili_refundacija"
  }
}

Input Schema

NameRequiredDescriptionDefault
vrstaYes
razlogNo
stavkeNoZa delimičnu refundaciju: stavke sa količinom
documentIdNoTezga ID originalnog dokumenta
externalIdNoTvoj broj porudžbine originala
kupacIdTipNo
kupacIdBrojNoSamo kad se vraća gotovina
potvrdiProdukcijuNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Adds real value beyond the destructiveHint annotation: it discloses that storno voids the ENTIRE invoice while refundacija can be partial, and that production calls require potvrdiProdukciju=true. It still does not state reversibility of the operation or what happens to already-issued documents, which keeps it below 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?

Four dense sentences, front-loaded with the mode distinction that matters most. Slightly terse to the point of near-telegraphic style ('Original se nalazi po documentId ili po externalId'), but nothing is wasted.

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 an 8-parameter destructive tool with no output schema, the description covers the critical decision surface: which mode, how to identify the original, and the production confirmation gate. Missing only secondary detail such as the role of razlog and how cash-customer fields interact with partial refunds.

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?

With only 50% schema coverage, the description compensates for the highest-value gaps: it explains the vrsta enum semantics, clarifies that the original is located via documentId OR externalId, and covers the production flag. razlog and kupacIdTip remain undocumented in both schema and description, preventing a 5.

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?

States specific verbs and resources: 'vrsta=storno poništava ceo račun' and 'vrsta=refundacija vraća novac'. The two enum values are given concrete business meaning, which the schema enum alone does not provide, so an agent can immediately tell which mode does what.

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 a clear selection condition for each mode: storno for a wrongly issued invoice without customer data, refundacija for returning money in full or per line item. It does not name alternative sibling tools (e.g. tezga_izdaj_racun for a correct new invoice), so the when-not is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.