Skip to main content
Glama

selectrole

Salary benchmark

salary-benchmark
Read-onlyIdempotent

Pay percentiles (p10, p25, p50, p75, p90) for the live roles a query matches, one group per currency and pay interval (year, month, week, day, hour), never mixed. Takes the same sql filter as query-jobs, e.g. title, stack, location, workplace or seniority. Figures come from the pay ranges roles post, not a survey: each role counts once, as the midpoint of its posted range or the one end it gives. Every group returns count, its number of roles; its percentiles are null when it has fewer than 10.

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": "salary-benchmark"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlNoFilter in the selectrole SQL dialect, e.g. seniority = 'senior' AND stack CONTAINS 'Go' AND workplace = 'remote'. Empty sql covers every live role.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly, idempotent, closed-world) by disclosing the data provenance (posted pay ranges, not a survey), the one-role-one-count midpoint rule, the never-mixed currency/interval grouping, and the small-sample suppression (percentiles null under 10 roles). These are exactly the caveats an agent needs before reporting figures.

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 returned artifact and dense with useful detail; almost no filler. A couple of sentences are long and clause-heavy (the provenance/midpoint sentence), which slightly reduces scannability but not substance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 semantics — and it does: group keys, the count field, percentile fields, and when they are null. Nothing an agent needs to call or interpret this tool is missing.

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

Parameters4/5

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

The single sql parameter is already fully documented in the schema, including dialect and an example, so the baseline is 3. The description adds real value by tying the parameter to query-jobs for dialect consistency and by stating the empty-string behavior.

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?

Names the exact artifact returned (p10/p25/p50/p75/p90 pay percentiles) plus the scope (live roles matched by a filter) and the grouping rule (one group per currency and pay interval). An agent can tell this apart from query-jobs or aggregate-jobs without opening any schema.

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?

States that it takes the same sql filter as query-jobs and that an empty sql covers every live role, which gives clear context for how to invoke it. It does not say when to prefer this over aggregate-jobs or query-jobs, so there is no explicit exclusion or routing guidance.

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