Skip to main content
Glama

Save payslip template

save_payslip_template

Create or update a payslip template: a named line set of earnings, deductions and contributions with each line's kind, rate, quantity, amount and formula. Omit id to create; pass an id to update that template. On update, lines is the full set. A template is master data: it changes future payslips only and posts nothing to the ledger.

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": "save_payslip_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
nameNo
linesNoThe full set of lines. It replaces the stored set; send the id of every line you keep.
notesNo
archivedNo
statutoryNo
showcreditsNotrue prints employer credit lines (ETI) on the payslip PDF, outside net pay. Off by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / lines / items / properties / category / description
      Added value: +"credit is an employer credit such as ETI: outside gross, net and cost. Only the pack's statutory credit line books to the ledger; a manual credit line books nothing."
    • changedInput schema / properties / lines / items / properties / category / enum
      Previous value: -[
      -  "earning",
      -  "deduction",
      -  "contribution",
      -  "benefit"
      -]New value: +[
      +  "earning",
      +  "deduction",
      +  "contribution",
      +  "benefit",
      +  "credit"
      +]
    • addedInput schema / properties / showcredits
      Added value: +{
      +  "description": "true prints employer credit lines (ETI) on the payslip PDF, outside net pay. Off by default.",
      +  "type": "boolean"
      +}
  2. Changed8 schema fields changed
    • addedInput schema / properties / lines / description
      Added value: +"The full set of lines. It replaces the stored set; send the id of every line you keep."
    • addedInput schema / properties / lines / items / properties / category / enum
      Added value: +[
      +  "earning",
      +  "deduction",
      +  "contribution",
      +  "benefit"
      +]
    • addedInput schema / properties / lines / items / properties / code / description
      Added value: +"The line's code: letter-led, then letters, digits, _ or -. Formulas and pay values name a line by its code. A reserved code (get_payroll_setup) is refused. Omit it to mint one from the description."
    • addedInput schema / properties / lines / items / properties / formula / description
      Added value: +"A formula over line codes, e.g. \"basic * 0.1\". get_payroll_setup lists the formula names. Null makes the line fixed."
    • addedInput schema / properties / lines / items / properties / id / description
      Added value: +"The id of a line you keep. Send the id on EVERY line you keep: the lines you send replace the stored set, and a line sent without its id is a new line with a new id."
    • addedInput schema / properties / lines / items / properties / kind / description
      Added value: +"fixed: amount as sent. rate: rate times quantity. formula: the formula prices the line."
    • changedInput schema / properties / lines / items / properties / kind / enum
      Previous value: -[
      -  "fixed",
      -  "rate",
      -  "formula",
      -  "item"
      -]New value: +[
      +  "fixed",
      +  "rate",
      +  "formula"
      +]
    • addedInput schema / properties / lines / items / properties / role / description
      Added value: +"A pack line role, \"<prefix>-<code>\", e.g. \"sars-3601\". get_payroll_setup lists the roles each category allows."
  3. Changed1 schema field changed
    • removedInput schema / properties / lines / items / properties / payitem
      Removed value: -{
      -  "type": "string"
      -}
  4. Added

TDQS

A3.5/5.0
Behavior3/5

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

The annotations only declare readOnlyHint=false and destructiveHint=false, so the description must carry the behavioral burden, and it does add genuine context: templates are master data, affect future payslips only, and post nothing to the ledger. It also states that on update 'lines is the full set', warning that the stored set is replaced. It stops short of covering permissions, validation failures, or what happens to archived/statutory flags.

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 sentences, front-loaded with the create/update distinction and ending with the consequence the agent most needs (future payslips only, no ledger posting). The first sentence is long and packs the line vocabulary, but each sentence carries distinct information with no 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?

For a seven-parameter mutation tool with no output schema and only two annotations, the definition supplies the essential domain framing (master data, no ledger impact, full-set replacement). Residual gaps are secondary parameter meanings and error/permission behavior, which are not blocking for correct invocation.

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?

Top-level schema coverage is 29%, so the description must compensate. It explains id creation-versus-update semantics, the replacement meaning of lines, and the line fields kind, rate, quantity, amount and formula, while the schema's nested line-item descriptions (id, code, role, category, formula) carry the rest. However name, notes, archived, statutory and showcredits get no meaning from the description, and archived/statutory are wholly unexplained.

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 and resource ('Create or update a payslip template') and defines the resource itself as 'a named line set of earnings, deductions and contributions' with the line attributes that compose it. It does not name or distinguish itself from siblings such as list_payslip_templates or save_payroll_settings, so it stays short of 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?

It gives the create-versus-update rule ('Omit id to create; pass an id to update that template'), which is real conditional guidance, but it offers no when-to-use context against alternatives and no exclusions or prerequisites. The guidance is mechanical rather than routing.

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