Skip to main content
Glama

What a role pays

salary_for_role
Read-onlyIdempotent

What full-time jobs for a role pay in India, worked out from the pay employers state on open job posts on Tivrin (at most 3 posts per employer, so one employer can't set the figure): the median and the middle half, in rupees a year, optionally for one city or experience level. Says so plainly when too few posts state pay. No sign-in needed. Abroad: pass country (AE, GB, US, SG, REMOTE…); the figure then comes only from that country's posts in one currency (its own, or the currency you pass), never converted, and visa_sponsored narrows it to sponsored roles.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "role": "<role>"
    },
    "name": "salary_for_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoA city in India, e.g. "Pune" (abroad: a city name in the posting).
roleYesA role or field, e.g. "data analyst", "accounting", "staff nurse", or a field id from list_fields.
countryNoIN (default), an ISO code such as AE, GB (or UK), US, SG, or REMOTE.
currencyNoAbroad: the currency the posts state pay in (default: the country's own, e.g. AED for AE, USD for REMOTE).
visa_sponsoredNoAbroad: only roles whose employer sponsors a work visa.
experience_yearsNoTarget years of work experience (0 for fresher/entry-level) to narrow the salary benchmark.

Output Schema

NameRequiredDescriptionDefault
urlYes
roleYes
figureYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / experience_years / description
      Added value: +"Target years of work experience (0 for fresher/entry-level) to narrow the salary benchmark."
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description still adds real behavioral context: sampling capped at 3 posts per employer to prevent one employer skewing the figure, an explicit low-sample fallback ('Says so plainly when too few posts state pay'), no sign-in required, and a hard rule that foreign figures are never currency-converted.

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?

Purpose and the India default are front-loaded, with the abroad behavior in a second block, so an agent can stop reading early. It is dense and parenthetical-heavy ('(at most 3 posts per employer, so one employer can't set the figure)'), with a slightly run-on final sentence, but nothing is genuinely expendable.

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?

With an output schema present, return values need no explanation, and the description still covers input modes (India default vs abroad), the metric shape (median plus middle half), and the suppression case. The remaining gap is tool-selection context against sibling salary tools, which the description never addresses.

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?

Schema coverage is 100%, so baseline is 3, but the description earns more by explaining semantics the schema does not: country accepts AE/GB/US/SG/REMOTE and changes the data source to that country's own posts, currency defaults to the country's own currency and is never converted, and visa_sponsored means the employer sponsors a work visa. These clarify behavior implied but not spelled out by the schema.

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 metric: pay for full-time jobs for a role, expressed as median and middle half in rupees per year, with optional city/experience narrowing. That is far beyond a restatement of the name. It falls short of 5 only because it never distinguishes itself from the sibling get_market_salary_guide, which an agent may see as overlapping.

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?

Gives concrete conditional guidance: pass country for jobs abroad, pass currency to pick the posting currency, and use visa_sponsored to restrict to sponsored roles. It does not say when to prefer this over get_market_salary_guide or search_jobs, so the choice between overlapping salary tools is left 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.