Skip to main content
Glama

delegacja

Calculate a travel allowance

perdiem_calc
Read-onlyIdempotent

Calculate the daily travel allowance for one trip: the amount per day and the total in the scheme's currency, with the partial-day fraction and the meal deductions the scheme's own rule applies. Free and unlimited.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYesWhen it ended, same form as start. It must be after start as an instant
startYesWhen the trip began, ISO 8601 WITH a zone: "2026-03-28T22:00:00+01:00", or "2026-03-28T22:00" together with timezone
schemeYes"pl" Polish delegation regulation, "uk" HMRC benchmark scale rates, "us" GSA CONUS standard
timezoneNoIANA id such as "Europe/Warsaw". Required when start or end carries no offset; also the zone the US scheme counts calendar days in
destinationYesCountry or locality, e.g. "Germany", "Poland", "United Kingdom", "United States"
fiscal_yearNoUS only, e.g. "FY2025". Defaults to the current bundled fiscal year
late_eveningNoUK only, per day: the journey was ongoing at 8pm and a meal was bought after it, which adds the 10.00 GBP supplement
lodging_nightsNoNights of accommodation. What this pays depends on the scheme and the answer says so
meals_providedNoPer day, in order: the free meals the traveller was given that day, e.g. [["breakfast"],["breakfast","lunch"]]. Each one reduces that day's allowance by the scheme's own percentage or amount
meals_provided_dailyNoThe same free meals on every day. Ignored for any day that meals_provided already names

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already indicate the tool is read-only, idempotent, and non-destructive. The description adds useful behavioral context by specifying what the result contains: per-day amount, total in the scheme's currency, partial-day fraction, and scheme-specific meal deductions. It also notes the tool is free and unlimited, which is additional practical context beyond the annotations.

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?

The description is concise and front-loaded with the core action and result composition. The 'Free and unlimited' sentence is a useful standalone note. It could be slightly more readable if the first sentence were split, but it contains no wasted content.

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?

There is no output schema, so the description must carry return-value information; it names the main outputs but not the full result shape or how scheme-specific optional parameters like fiscal_year, late_evening, and lodging_nights affect the result. The rich input schema covers parameter semantics well, but for a 10-parameter tool with multiple scheme-specific behaviors, the description alone is not fully complete.

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 description coverage is 100%, so the structured schema already documents all parameters thoroughly. The description adds little parameter-level meaning beyond mentioning meal deductions and partial-day fractions, which loosely map to meals_provided and start/end. This meets the baseline but does not significantly augment the schema.

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 states a specific verb and resource: 'Calculate the daily travel allowance for one trip' and enumerates the key outputs (per-day amount, total in scheme currency, partial-day fraction, meal deductions). This makes it clear that this tool computes a per-trip allowance, distinguishing it from a sibling like perdiem_rates that would provide rate tables rather than a calculated allowance.

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 description implies the primary use case—calculating an allowance for one trip—but does not explicitly state when to prefer this tool over perdiem_rates or perdiem_report. It also does not mention required inputs or conditions like needing a scheme, destination, and date range, leaving usage boundaries to inference.

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.