Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_hr_leave_accrual

Read-onlyIdempotent

Compute prorated employee annual leave accrual, used days and remaining balance from customer-specified policy. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "annual_days": "<annual_days>",
      "months_worked": "<months_worked>",
      "days_used": "<days_used>"
    },
    "name": "api_hr_leave_accrual"
  }
}

Input Schema

NameRequiredDescriptionDefault
days_usedYesdays used; see operation description for units and format
annual_daysYesannual days; see operation description for units and format
months_workedYesmonths worked; see operation description for units and format
carry_forward_daysNocarry forward days; see operation description for units and format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the description correctly spends its words on things annotations cannot express: a per-call cost of 0.01 USDC on Base x402 and the X-Provider-Key header for customer-owned credentials. That is real, actionable context; the only shortfall is no mention of latency, limits, or output shape beyond the named quantities.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both dense: the computation is front-loaded and the commercial/auth constraints follow. No filler, no restatement of the tool name.

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 does a fair job naming what is returned (accrual, used days, remaining balance) and covers payment and credential requirements. But the proration method (monthly vs. daily, rounding, treatment of carry_forward_days) and the input units are never resolved, which are exactly what an agent needs to call this correctly.

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

Parameters2/5

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

The schema reports 100% coverage, but every parameter description is a vacuous placeholder that explicitly defers to the operation description ('see operation description for units and format'), and the description supplies no units or format at all. The deferral loop leaves annual_days, months_worked, days_used, and carry_forward_days semantically undefined — is months_worked a whole number, a fraction, capped at 12? Nothing in the description adds meaning.

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?

The description uses a specific verb ('Compute') with a precisely named resource: prorated annual leave accrual, days used, and remaining balance from a customer-specified policy. That is clearly distinct from HR siblings like api_hr_payroll or api_hr_shift_rest, though it never names a sibling to contrast against explicitly.

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?

The use case is implied by the stated inputs and outputs (compute accrual for a given policy and months worked), but there is no explicit when-to-use, when-not-to-use, or guidance on how this differs from api_hr_payroll or api_hr_shift_rest. An agent must infer the boundary.

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