Skip to main content
Glama

Set employee pay

set_employee_pay

Set one employee's own pay: rows by line code over the stored ones, codes to remove, and the package and payslip template. Rows not named are kept. Turn on an opt-in line such as eti with included true and since. A tax directive is set in the stub app only: a row naming one is refused, and a stored directive row is kept. Writes no payslip and posts nothing to the ledger.

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": {
      "employee": "<employee>"
    },
    "name": "set_employee_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNoPay rows to set, one per line code. Each row replaces the stored row with the same code; codes not sent keep their stored row. amount fixes a line's figure, rate and quantity price a rate line, formula prices it with a formula, excluded true leaves the line off. An opt-in line (get_payroll_setup), such as eti, is turned on with {code, included true, since YYYY-MM}. A tax directive is set in the stub app only.
removeNoLine codes whose stored rows to remove. A row carrying a tax directive is never removed.
employeeYesThe employee id, or the employee's name or number.
packagekindNoHow the package is paid. annual, monthly and weekly: packageamount is the pay for that period and packagequantity is not sent. hourly and daily: packageamount is the RATE per hour or day and packagequantity is the normal hours or days per week. "$delete" clears it.
packageamountNoThe package amount; see packagekind. "$delete" clears it.
packagequantityNoNormal hours or days per week, for an hourly or daily package only. "$delete" clears it.
paysliptemplateNoThe payslip template id or name whose lines this employee's payslips start from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations it discloses the merge semantics (unsent rows are kept), the refusal rule for tax-directive rows, the retention of a stored directive row, and the side-effect boundary ('Writes no payslip and posts nothing to the ledger'). Those are exactly the behavioural facts an agent cannot get from readOnlyHint/destructiveHint. The removal path is also stated plainly, so nothing destructive is hidden.

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?

Four front-loaded sentences with no filler, and the merge semantics come first where they matter most. The phrasing is telegraphic in places ('rows by line code over the stored ones'), which costs readability, but nothing is padding.

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 7-parameter mutation with no output schema, the description covers merge behaviour, refusals, opt-in activation, and the absence of downstream side effects. The only gap is what the call returns or confirms on success, which is not addressed. Otherwise complete enough to call correctly.

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 the schema already documents each parameter, including the '$delete' sentinels and the opt-in activation pattern. The description mostly restates that material (the eti/{code, included true, since} example and the tax-directive rule appear in the schema too). Baseline 3 is appropriate when the schema carries the load.

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 first sentence names a specific verb and resource ('Set one employee's own pay') and enumerates the three things it operates on: line-code rows, removals, and the package/payslip template. The 'one employee's own' scoping distinguishes it from bulk pay operations. It does not name or contrast any sibling, so a 4 rather than a 5.

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?

When-to-use is only implied through the semantics ('Rows not named are kept', 'rows by line code over the stored ones'), which tells an agent this is a partial upsert rather than a full replace. There is no explicit statement of when to pick this over an alternative or of prerequisites such as permissions. Adequate but leaves the choice to inference.

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