Skip to main content
Glama

Build calculation documents

build_calculation_documents

Write the calculation into the Mappe as documents, ready to be exported one by one as PDF, Word or Excel. Three sections from one source: internal (cost rates, surcharges, contribution margin — is_internal, never leaves the house), external (the price sheet: quantity, unit price, sum, VAT — no cost rate anywhere) and schedule (a bar chart in months from the start of the contract). This is what the procurement documents ask for as separate annexes — the BASt list for FE 04.0353 names Durchfuehrungskonzept, Kalkulation and Terminplan as three files the bidder produces. Existing documents are replaced via their playbook_item_key rather than duplicated.

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

Input Schema

NameRequiredDescriptionDefault
partsNoDefault all three.
dry_runNoReturns the Markdown without writing anything.
grant_idNo
tender_idNo
dossier_idNo
calculation_idNo

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 a non-read-only, non-destructive, non-idempotent write, and the description adds the crucial replacement rule — existing documents are overwritten via playbook_item_key rather than duplicated — plus the data-sensitivity boundary that internal cost rates never leave the house. It does not state where documents land or what a non-dry-run return looks like.

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?

Front-loaded with the action, then the three sections, then the procurement rationale, then the replacement rule — a sensible information order in one dense paragraph. The BASt reference number adds domain colour that borders on surplus for an invoking agent.

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 6-parameter mutation with no output schema and no required fields, the description covers what is written but not the target identity resolution or return shape beyond dry_run returning Markdown. An agent could still be unsure which of the four ID parameters to pass.

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?

Schema coverage is only 33% across 6 parameters, and the description compensates for `parts` by defining all three section values in substantive detail. It says nothing about grant_id, tender_id, dossier_id, or calculation_id — notably with 0 required parameters it never explains that some identifier must be supplied or how they interact.

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?

A specific verb and resource — writes the calculation into the Mappe as three named document sections (internal, external, schedule) ready for PDF/Word/Excel export. Each section's contents are spelled out, so an agent knows exactly what artefact is produced and can distinguish it from siblings like build_personnel_annex.

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?

Usage context is clear: this is what procurement annexes ask for, tied to the concrete BASt list (Durchfuehrungskonzept, Kalkulation, Terminplan). No explicit when-not guidance or sibling routing is given, so the agent must infer the boundary against build_personnel_annex and the list_*_documents tools.

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