Skip to main content
Glama

Save payrun

save_payrun

Create or update a pay run header: period window, pay date, frequency and the tax returns it files. Omit id to create; pass an id to update that run. A created run is saved with payactionenabled false, so it never finalises itself and its drafts stay editable; arm it with an update only when the user asks. Writes no payslip 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_payrun"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
kindNo
notesNo
paydateNoThe day the employees are paid, YYYY-MM-DD.
returnsNoThe tax returns finalising files, as source ids from get_payroll_setup. Leave it out for the country's defaults.
frequencyNoHow often the run pays: monthly, semimonthly (twice a month), fortnightly or weekly.
payactionNo
periodendNoThe last day of the pay period, YYYY-MM-DD.
competenceNo
periodstartNoThe first day of the pay period, YYYY-MM-DD.
payactionenabledNoWhether the run finalises and posts its draft payslips itself on its pay date. A created run is always saved with false. On an update, false lets its drafts be edited again and true arms it; only arm a run the user has asked to arm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses the key non-obvious behavior: a created run is forced to payactionenabled=false and never finalises itself, drafts stay editable, and arming requires an explicit update. It also states what is NOT done (no payslip writes, no ledger postings), which is exactly the safety context an agent needs for a mutation tool.

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?

Four tight sentences, front-loaded with purpose and mode selection, then the safety constraint, then the side-effect disclaimer. No filler and nothing redundant with the schema.

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 an 11-parameter mutation tool with a nested object and no output schema, the description covers the critical decisions: create vs update, the dangerous flag, and the absence of downstream effects. The remaining gap is the meaning of the less common fields (kind, competence, payaction), which an agent would still have to guess at.

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?

The description adds genuine meaning for 'id' (create vs update semantics) and reinforces 'payactionenabled' beyond the schema text. However, at 55% schema coverage several parameters — kind, notes, competence, and the nested payaction object with send/reports — are unexplained in both the schema and the description, so the gap is only partly compensated.

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 opens with a specific verb and resource ('Create or update a pay run header') and enumerates the scope: period window, pay date, frequency, tax returns. It also explicitly separates the create path from the update path and disclaims side effects ('writes no payslip, posts nothing to the ledger'), which implicitly distinguishes it from populate_payrun without needing the sibling's name.

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 gives a concrete decision rule for the two modes ('Omit id to create; pass an id to update') and a conditional instruction for the risky flag ('arm it with an update only when the user asks'). It does not explicitly name alternative tools such as populate_payrun or delete_payrun, so routing guidance is clear but not exhaustive.

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