Skip to main content
Glama

Hourly to Salary Calculator API - convert hourly, daily, weekly, monthly and yearly pay

hourly_to_salary
Read-onlyIdempotent

Convert between hourly rate, daily pay, weekly pay, bi-weekly pay, monthly pay and annual salary with custom hours per week, work days per week and paid weeks per year. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/hourly-to-salary.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "basis": "hourly",
      "amount": "25",
      "hoursPerWeek": "40"
    },
    "name": "hourly_to_salary"
  }
}

Input Schema

NameRequiredDescriptionDefault
basisNoInput pay periodhourly
amountYesPay amount for the selected period, e.g. 25
daysPerWeekNoWorking days per week5
hoursPerWeekNoWorking hours per week40
weeksPerYearNoPaid weeks per year52

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent and open-world, but the description adds genuinely useful behavior: server-side execution, free tier of 5 calls/day per IP, and two paid paths (X-API-Key or x402 micropayment) with prices. The only weak spot is the 'files are deleted right after the call' line, which is irrelevant to a calculator with no file parameters and reads as boilerplate.

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 conversion scope is front-loaded in the first sentence and the commercial terms follow in a compact second block. The file-deletion sentence is the one piece that does not earn its place for this tool.

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 should clarify what comes back — whether a single converted figure or a full breakdown across all periods, and the numeric format. It covers access and scope well but leaves the response shape entirely unspecified for a tool whose whole value is the returned numbers.

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 every parameter is already documented in the schema with types, defaults and the enum. The description restates the same concepts (hours per week, work days per week, paid weeks per year) without adding format rules, unit constraints, or interaction semantics, so the baseline of 3 applies.

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?

States a specific verb and full resource scope: 'Convert between hourly rate, daily pay, weekly pay, bi-weekly pay, monthly pay and annual salary' plus the customization axes. This is clearly distinguishable from sibling calculators like loan_calculator or percentage_calculator 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 Guidelines3/5

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

Usage is implied by the enumerated conversion periods, and the pricing/auth paragraph tells the agent how to get access, but there is no explicit when-to-use vs when-not guidance or named alternative among the many sibling calculators. An agent must infer that this is the right tool for pay-period conversion.

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