Skip to main content
Glama

Save payrun schedule

save_payrun_schedule

Create or update a pay run schedule: frequency, pay day, the employees it pays, whether each new run is filled with draft payslips, and the tax returns it files. Omit id to create; pass an id to update that schedule. A created schedule is saved with payactionenabled false, so its runs never finalise themselves; arm it with an update only when the user asks. Opens no run; trigger_payrun_schedule does.

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_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
paydayNoThe pay day. monthly and semimonthly: a day 1-31 or "last". weekly and fortnightly: a weekday such as "friday".
enabledNo
returnsNoThe tax returns finalising files, as source ids from get_payroll_setup. Leave it out for the country's defaults.
populateNotrue fills each new run with a draft payslip per employee on the roster.
employeesNoThe employee ids the schedule pays; leave it out for everyone employed. "$delete" clears the list.
frequencyNoHow often the run pays: monthly, semimonthly (twice a month), fortnightly or weekly.
payactionNo
payactionenabledNoWhether each run the schedule opens finalises and posts itself on its pay date. A created schedule is always saved with false. On an update, true arms it; only arm a schedule the user has asked to arm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the thin annotations (readOnlyHint=false, destructiveHint=false): a created schedule is always persisted with payactionenabled=false so its runs never finalise, arming requires an explicit update, and no run is opened. However, it says nothing about what a save returns, whether permissions or a payroll setup are prerequisites, or the effect of the undocumented `enabled` and `payaction` fields on already-scheduled runs.

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?

Front-loaded with purpose, then three short sentences carrying the mode switch, the arming hazard, and the sibling route. No filler or restatement of the name.

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 9-parameter mutation tool with no output schema and only minimal annotations, the description covers the critical semantics: create vs update, default-disabled arming, and non-triggering. The gaps are the unexplained `enabled` and `payaction` fields, which affect automation behavior and are documented nowhere.

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

Parameters4/5

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

At 67% schema coverage the schema already explains payday, frequency, employees, returns, populate and payactionenabled, so the description's main added value is the id-as-mode-switch rule and the arming caution. It does not clarify the undocumented `enabled` flag or the nested `payaction` object (send/reports), which remain opaque in both schema and prose.

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?

States a specific verb pair and resource ('Create or update a pay run schedule') and enumerates exactly what the schedule controls: frequency, pay day, employees, draft payslip population, and tax returns. It also distinguishes itself from trigger_payrun_schedule by declaring 'Opens no run', so an agent can tell the two apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives the create-vs-update rule ('Omit id to create; pass an id to update') and an exclusion condition ('arm it with an update only when the user asks'). It also names the alternative for the case this tool does not cover ('trigger_payrun_schedule does').

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