Skip to main content
Glama

Compare a salary to a benchmark

compare_salary

Compare a gross annual salary with the country and sector benchmark, returning whether it is below, near, or above the benchmark and by what percentage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
salaryYesGross annual salary in the country's local currency
sectorYesSector code, e.g. it, finance, national (see list_options)
countryYesCountry code, e.g. USA, UK, DE, EE (see list_options)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYes
salaryYes
averageYes
verdictYes
currencyYes
differencePercentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden, and it does disclose the output semantics (below/near/above plus percentage delta). However, it never defines the thresholds that separate 'below', 'near' and 'above', and says nothing about read-only nature, currency handling, or failure modes.

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?

A single front-loaded sentence that states the inputs, the comparison, and the returned verdict with zero filler. Nothing is repeated or padded.

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?

An output schema exists so return values need not be explained, and the description still covers them; inputs are fully documented in the schema. The only notable gap is the undefined below/near/above thresholds, which an agent cannot infer.

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%, with all three parameters documented including the currency basis, examples and a pointer to list_options. The description only restates the same fields, adding no syntax or format meaning beyond the schema, so the baseline 3 applies.

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 verb (compare) plus resources (gross annual salary, country and sector benchmark) and even the output shape. It implicitly contrasts with get_salary_benchmark, but never names the sibling or explicitly distinguishes fetching a benchmark from comparing against one.

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?

Usage is implied by the verb 'compare' against a benchmark, but there is no explicit when-to-use guidance or routing to get_salary_benchmark when the agent only needs the benchmark itself. No prerequisites or exclusions are stated.

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.