Skip to main content
Glama

Get offer calculation

get_offer_calculation
Read-onlyIdempotent

The offer calculation with every position and the figures computed from them: personnel cost, overhead, prime cost, risk, net and gross price, contribution margin and the margin actually achieved against the target. Read gaps before quoting any number — as long as a position lacks a rate, every sum it feeds is a PARTIAL sum and is returned as null rather than as a total that is too small and looks like a result.

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

Input Schema

NameRequiredDescriptionDefault
grant_idNo
tender_idNo
calculation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent and non-destructive, so the bar is lower, yet the description adds genuinely non-obvious behavior: incomplete positions produce PARTIAL sums returned as null rather than understated totals, and a `gaps` field signals that condition. It does not mention error behavior when identifiers are missing or ambiguous, which keeps it from 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?

Two sentences, front-loaded with the returned figures before the critical null/gaps caveat, and each clause carries information. The closing phrase ('too small and looks like a result') is slightly rhetorical but justifies the warning.

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?

With no output schema, the description does a good job describing return values and the null semantics, which is the hardest part of this tool. However, for a three-identifier lookup with no required parameters it leaves the most consequential question — how to address the calculation — entirely unaddressed.

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

Parameters2/5

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

Schema description coverage is 0% and all three parameters (grant_id, tender_id, calculation_id) are undocumented and optional, so the description would need to explain precedence or which identifier selects what. It says nothing about any parameter, leaving the agent to guess how to scope the lookup.

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 resource and enumerates exactly what it returns (positions plus personnel cost, overhead, prime cost, risk, net/gross price, contribution margin, achieved vs target margin), which lets an agent distinguish it from writers like upsert_offer_calculation or upsert_calculation_item. It does not explicitly contrast itself with siblings such as build_calculation_documents or get_project_financials, so it stops short of 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance relative to the many sibling read tools, and no stated prerequisite for choosing among grant_id, tender_id or calculation_id. The only usage instruction ('read gaps before quoting any number') governs interpreting the response, not selecting the tool.

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