Skip to main content
Glama

List payroll optins

list_payroll_optins
Read-only

List, per employee, each opt-in statutory line (South Africa's ETI) the payroll could claim: whether it is claimed, whether the employee qualifies this month and why not, the day they age out, which of the 24 months this is, the amount it would be worth this month, and the earlier months still claimable. It prices a preview; nothing is saved. To claim, save the employee with an included pay value row.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_payroll_optins"
  }
}

Input Schema

NameRequiredDescriptionDefault
payrunNoA pay run id: answer for that run's employees at its pay date. Omitted, this month.
employeesNoEmployee ids to answer for. Omitted, every employee on the roster.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description goes further by confirming nothing is persisted and that the tool prices a preview, plus it explains the claim mechanics and the 24-month window including earlier claimable months. It stops short of stating permissions, rate limits, or ordering/pagination of results.

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?

Two sentences, front-loaded with the core definition and ending with the action the agent should take next. The first sentence is dense and list-like but every clause carries information about return content; nothing is filler.

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 no output schema, the description compensates by enumerating the returned fields and the preview semantics, which is what an agent needs to interpret results. It is a little thin on edge cases (invalid payrun id, employee not on the roster) but otherwise complete for a two-parameter read tool.

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% and both parameters (payrun, employees) are fully documented with their defaults in the schema itself. The description adds no parameter-level detail such as id formats or behavior when an employee is not on the given run, so the baseline 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?

The description gives a specific verb (List) plus a precisely scoped resource: per-employee opt-in statutory lines for South Africa's ETI. It enumerates the exact information returned (claimed status, qualification for the month and reasons, age-out date, month index out of 24, current value, earlier claimable months), which no sibling list tool covers.

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?

It clearly frames this as a preview-only operation ('It prices a preview; nothing is saved') and states the path to actually claim ('save the employee with an included pay value row'), which implicitly routes the agent to a save operation. It does not name the specific sibling save tool, so the routing is inferred rather than explicit.

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