Skip to main content
Glama

Trigger payrun schedule

trigger_payrun_schedule

Open the next pay run for each enabled pay run schedule right now, without waiting for its date. Send schedule to run only that one; an id that is not one of the business's enabled schedules is refused and opens nothing.

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

Input Schema

NameRequiredDescriptionDefault
scheduleNoThe id of one pay run schedule to run (list_payrun_schedules). Omit it to run every enabled schedule.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / schedule
      Added value: +{
      +  "description": "The id of one pay run schedule to run (list_payrun_schedules). Omit it to run every enabled schedule.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already say readOnlyHint=false and destructiveHint=false, so the safety profile is covered, and the description adds real behavior: an invalid id is refused and opens nothing, which tells the agent the call fails safe rather than partially executing. It omits permission requirements and what happens when a pay run for the period is already open, which would be the remaining high-value details.

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?

Two sentences, zero filler, with the primary action and its immediate-execution effect front-loaded before the optional single-schedule mode and its error case. Every clause carries information the agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-optional-parameter mutation with no output schema, the description covers what it does, the two invocation modes, and the failure behavior on invalid input. Nothing required to call it correctly is missing.

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?

Schema coverage is 100% and the parameter already documents its own meaning plus the list_payrun_schedules source for ids, so the baseline is 3. The description goes beyond that by describing the constraint on the value, that an id which is not one of the business's enabled schedules is refused and opens nothing, giving the agent a concrete failure condition.

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 and resource: it opens the next pay run for each enabled pay run schedule immediately rather than waiting for the scheduled date. That scope ('enabled pay run schedules', 'right now') separates it cleanly from save_payrun_schedule, list_payrun_schedules and the trigger_recurring_* siblings.

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?

Explains the when: use it to run ahead of schedule instead of waiting for the date. It also spells out the two modes of use, omit the parameter to run everything or pass an id to run just one. It does not state when not to use it (e.g. if a pay run is already open), so it stops short of a 5.

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