Skip to main content
Glama
Čebelca MCP server

Čebelca MCP server

by egorperp

calculate_totals

Read-only

Calculate net, VAT by rate, and gross totals for proposed invoice lines without creating an invoice. Use it to preview line-item amounts before drafting or finalizing.

Instructions

Calculate net, VAT (per rate) and gross totals for invoice lines without creating anything.

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": {
      "items": "<items>"
    },
    "name": "calculate_totals"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

readOnlyHint=true and openWorldHint=false already establish that this is a side-effect-free local computation, so "without creating anything" mostly restates the annotation. The description adds no detail on rounding, discount handling, currency, or error behavior for malformed lines.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the computed outputs, with the key differentiating constraint at the end. No filler and nothing buried.

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?

With no output schema, the description correctly carries the burden of naming the return values (net, VAT broken out per rate, gross), which is exactly what an agent needs. It is slightly incomplete on how discounts and rounding feed into those numbers.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single `items` parameter maps clearly to "invoice lines," and "VAT (per rate)" hints at how the per-line `vat` field is used. However, it says nothing about how `discount` affects the totals or how multiple VAT rates are aggregated, which the top-level schema does not cover.

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 gives a specific verb (calculate), a precise list of computed values (net, VAT per rate, gross), and the resource scope (invoice lines), plus an explicit non-goal ("without creating anything") that separates it from create_invoice_draft and finalize_invoice.

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 phrase "without creating anything" implies this is the preview/dry-run option versus the creating siblings, but it never states when to call it (e.g., before drafting or finalizing). The routing signal is inferable but not explicit.

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