Skip to main content
Glama

Salary / pay period converter

calc_salary
Read-onlyIdempotent

Convert pay between hourly, daily, weekly, biweekly, semimonthly, monthly, and yearly amounts using custom work hours, overtime, and raise inputs.

Instructions

Convert pay between per hour, day, week, every 2 weeks, twice a month, month and year using your hours per week, days per week and weeks per year (defaults 40 / 5 / 52). Optional overtime (hours per week × multiplier, e.g. 1.25, 1.5, 2) and a raise given as a percent or as the new monthly pay. Amounts are rounded to 2 decimals. Web version: https://s3eidat.github.io/salary-calc/

Input Schema

NameRequiredDescriptionDefault
amountYesThe pay amount, e.g. 1200.
periodNoThe period "amount" is paid for.month
currencyNoOptional ISO currency code for the text summary (e.g. USD, JOD).
daysPerWeekNoWorking days per week (0–7, default 5).
hoursPerWeekNoWorking hours per week (0–168, default 40).
raisePercentNoOptional raise in percent (gives the new pay).
weeksPerYearNoPaid weeks per year (0–53, default 52).
newMonthlyPayNoOr: the new monthly pay (gives the raise percent).
overtimeHoursNoOptional overtime hours per week.
overtimeMultiplierNoOvertime rate multiplier (default 1.5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so the bar is lower; the description still adds real value by disclosing rounding to 2 decimals, default work-week assumptions, and how overtime and raise inputs behave. It stops short of describing the returned breakdown, which is the one behavioral gap.

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 core action and period list, then defaults, then optional overtime/raise. Dense but nearly every clause carries information; only the appended web URL is arguably disposable.

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?

For a 10-parameter calculator with no output schema, the description covers inputs well but never explains what comes back – whether all periods are returned, whether a text summary is produced (the currency param hints at one), or the shape of the result. That is a meaningful gap for an agent planning downstream use.

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 adds meaning beyond the schema: it clarifies the overtime formula ('hours per week × multiplier'), gives concrete multiplier examples, and states that raise is given either as a percent or as new monthly pay, making the mutual exclusivity of raisePercent/newMonthlyPay explicit.

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 resource ('Convert pay between...') and enumerates every supported period (hour through year), so an agent immediately knows this is a pay-rate converter rather than a generic calculator like calc_hours or calc_percentage.

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 only implied: the description explains the inputs drive the conversion and mentions defaults (40/5/52) and optional overtime/raise, but it never states when to prefer this over sibling tools (e.g. calc_hours, calc_loan) or any precondition/exclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools