Skip to main content
Glama

ScorpTech x402 Tools

Wage Calc

wage_calc
Read-onlyIdempotent

Gross pay in exact cents. Hourly: regular hours at the rate, overtime hours at a multiplier (default 1.5) and double-time hours at a multiplier (default 2). Weekly: hours above the threshold (default 40) are overtime. Salary: the annual amount is split across 52, 26, 24 or 12 periods so the paychecks add back to the annual amount. Extra straight-time hours are paid at annual / 2080 (52 × 40). Overtime and double-time hours use that same base rate times their multipliers. Returns JSON with: gross, regular, overtime, doubleTime, hourlyRate, overtimeRate, doubleTimeRate, regularHours. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/wage-calc

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": {
      "rate": "<rate>"
    },
    "name": "wage_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNohourly
rateYesHourly rate, or the annual salary in salary mode
hoursNoHours worked (weekly mode, or extra hours on top of a salary)
dtHoursNo
otHoursNo
periodsNoSalary: paychecks per year
dtMultiplierNoDefault 2
otMultiplierNoDefault 1.5
regularHoursNo
weeklyThresholdNoWeekly mode: hours before overtime, default 40

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the read-only/idempotent annotations, the description discloses real behavioral facts: the computation rules, the exact return keys (gross, regular, overtime, doubleTime, rates, regularHours), the $0.001 USDC x402 cost, supported chains, and an HTTPS equivalent endpoint. It stops short of describing error behavior or rounding/validation failures, so it is strong but not exhaustive.

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?

Sentences are dense but front-loaded: result and unit first, then per-mode rules, then return shape, then pricing/endpoint. Each sentence carries information, though the mode rules could be structured as a list for faster scanning and the endpoint/price tail adds length.

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?

For a 10-parameter calculator with no output schema, the description does the necessary work by enumerating the returned JSON fields and clarifying how the three modes relate to the parameters. Remaining gaps are minor: no discussion of invalid input handling or how cents rounding is resolved.

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?

With schema coverage at 60%, the description compensates well: it explains that `rate` is hourly pay or annual salary depending on mode, that `hours` means extra straight-time hours in salary mode, that ot/dt multipliers default to 1.5 and 2, that weeklyThreshold defaults to 40, and that extra hours are priced at annual/2080. `dtHours`, `otHours`, and `regularHours` are only referenced implicitly, leaving a small gap.

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?

The opening 'Gross pay in exact cents' names the specific computation and output unit, and the following clauses enumerate the three supported modes (hourly, weekly, salary) with the rule each applies. An agent can tell immediately that this is a payroll/wage computation tool, distinct from the numeric-theory and calculator siblings.

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?

The mode-by-mode breakdown effectively tells the agent which configuration to pick: hourly for rate × hours, weekly for threshold-based overtime, salary for per-period splitting. It gives clear context but offers no exclusions or explicit 'do not use for X' guidance, and no sibling alternatives are named.

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