Skip to main content
Glama

Save employee

save_employee

Create or update a payroll employee: name, number, contact and identity details, role, department, employments and standing package. Omit id to create; pass an id to update that employee. An update that ends the employee's employment (a new end date with no employment starting the next day) files their tax certificates; a status change, a re-sent end date or a create files nothing. 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_employee"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
cityNo
nameNo
roleNo
emailNo
notesNo
numberNo
suburbNo
addressNo
contactNoThe id of the contact this employee is linked to: a contact, customer or supplier id from this business. "$delete" unlinks it.
countryNo
starredNo
address2No
archivedNo
idnumberNo
addressesNoThe full list of addresses. It replaces the stored list: an address left out is removed. Leave the key out to keep the stored list; send [] to clear it.
birthdateNo
taxnumberNo
departmentNo
postalcodeNo
employmentsNo
identifiersNoThe full list of the employee's ID, passport and tax numbers. It replaces the stored list: an identifier left out is removed. Leave the key out to keep the stored list; send [] to clear it. idnumber and taxnumber are kept in step with it.
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.
jurisdictionNoThe employee's jurisdiction id within the business's payroll pack, when the pack has more than one.
contactnumberNo
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 id of the payslip template whose lines this employee's payslips start from.
leaveentitlementsNoThe employee's own yearly leave days per leave type (PROD-3501). Accrual uses, for each month, the row for the type in force then, in place of the leave type's yearly rate; 0 stops that type for the employee. Each row applies from its effectivefrom date (PROD-3502), so a change adds a row and leaves the old one as history. The list replaces the stored one: leave the key out to keep it, send [] to clear it. A row that is in force on or before the employee's last finalised payslip cannot be changed or removed (leaveentitlement-affects-finalised-payslips, with lockedthrough).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / contact
      Added value: +{
      +  "description": "The id of the contact this employee is linked to: a contact, customer or supplier id from this business. \"$delete\" unlinks it.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / leaveentitlements / description
      Previous value: -"The employee's own yearly leave days per leave type (PROD-3501). Accrual uses these days in place of the leave type's yearly rate; 0 stops that type for the employee. The list replaces the stored one: leave the key out to keep it, send [] to clear it and fall back to each type's rate."New value: +"The employee's own yearly leave days per leave type (PROD-3501). Accrual uses, for each month, the row for the type in force then, in place of the leave type's yearly rate; 0 stops that type for the employee. Each row applies from its effectivefrom date (PROD-3502), so a change adds a row and leaves the old one as history. The list replaces the stored one: leave the key out to keep it, send [] to clear it. A row that is in force on or before the employee's last finalised payslip cannot be changed or removed (leaveentitlement-affects-finalised-payslips, with lockedthrough)."
    • addedInput schema / properties / leaveentitlements / items / properties / effectivefrom
      Added value: +{
      +  "description": "YYYY-MM-DD the days apply from. Left out: a row with the same type and days as a stored one keeps that row; any other row applies from today on update, and from the start on create.",
      +  "type": "string"
      +}
    • changedInput schema / properties / leaveentitlements / items / properties / id / description
      Previous value: -"The entitlement id. Send it to keep and update that row."New value: +"The entitlement id. With the same days, it keeps that row. With new days and no effectivefrom, it changes that row's days on its own date when the row starts after the last finalised payslip; otherwise that row stays as history and the new days apply from today, or the save is refused if that would re-rate a finalised payslip."
  3. Changed1 schema field changed
    • addedInput schema / properties / leaveentitlements
      Added value: +{
      +  "description": "The employee's own yearly leave days per leave type (PROD-3501). Accrual uses these days in place of the leave type's yearly rate; 0 stops that type for the employee. The list replaces the stored one: leave the key out to keep it, send [] to clear it and fall back to each type's rate.",
      +  "items": {
      +    "properties": {
      +      "days": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "string"
      +          }
      +        ],
      +        "description": "Yearly days for this leave type, 0 or more."
      +      },
      +      "id": {
      +        "description": "The entitlement id. Send it to keep and update that row.",
      +        "type": "string"
      +      },
      +      "leavetype": {
      +        "anyOf": [
      +          {
      +            "type": "object"
      +          },
      +          {
      +            "type": "string"
      +          }
      +        ],
      +        "description": "The leave type id, from this business."
      +      }
      +    },
      +    "required": [
      +      "leavetype",
      +      "days"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / properties / addresses
      Added value: +{
      +  "description": "The full list of addresses. It replaces the stored list: an address left out is removed. Leave the key out to keep the stored list; send [] to clear it.",
      +  "items": {
      +    "properties": {
      +      "address": {
      +        "type": "string"
      +      },
      +      "address2": {
      +        "type": "string"
      +      },
      +      "city": {
      +        "type": "string"
      +      },
      +      "country": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "The address id. Send it to keep and update that address; leave it out to add a new one.",
      +        "type": "string"
      +      },
      +      "label": {
      +        "description": "A name for the address, e.g. Head office.",
      +        "type": "string"
      +      },
      +      "postalcode": {
      +        "type": "string"
      +      },
      +      "showoninvoices": {
      +        "description": "True on the ONE address that documents print. More than one is refused.",
      +        "type": "boolean"
      +      },
      +      "suburb": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
    • addedInput schema / properties / identifiers
      Added value: +{
      +  "description": "The full list of the employee's ID, passport and tax numbers. It replaces the stored list: an identifier left out is removed. Leave the key out to keep the stored list; send [] to clear it. idnumber and taxnumber are kept in step with it.",
      +  "items": {
      +    "properties": {
      +      "country": {
      +        "description": "The issuing country's name, for a passport.",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "The identifier id. Send it to keep and update that identifier; leave it out to add a new one.",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "description": "The kind, a lower-case slug: said (South African ID), passport, taxnumber, or another registration the country uses.",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The number as it is written.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
  5. Changed7 schema fields changed
    • addedInput schema / properties / jurisdiction / description
      Added value: +"The employee's jurisdiction id within the business's payroll pack, when the pack has more than one."
    • changedInput schema / properties / packageamount / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "enum": [
      +      "$delete"
      +    ],
      +    "type": "string"
      +  }
      +]
    • addedInput schema / properties / packageamount / description
      Added value: +"The package amount; see packagekind. \"$delete\" clears it."
    • addedInput schema / properties / packagekind / description
      Added value: +"How 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."
    • changedInput schema / properties / packagequantity / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "enum": [
      +      "$delete"
      +    ],
      +    "type": "string"
      +  }
      +]
    • addedInput schema / properties / packagequantity / description
      Added value: +"Normal hours or days per week, for an hourly or daily package only. \"$delete\" clears it."
    • addedInput schema / properties / paysliptemplate / description
      Added value: +"The id of the payslip template whose lines this employee's payslips start from."
  6. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=false and destructiveHint=false; the description goes well beyond them by disclosing a conditional side effect an agent could not otherwise predict — an update that ends employment files tax certificates, while 'a status change, a re-sent end date or a create files nothing.' It also declares negative side effects (no payslip written, nothing posted to the ledger). This is exactly the behavioral disclosure the annotations do not carry, and it does not contradict them (no destruction, but a downstream filing).

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?

Front-loaded with the verb and resource, then mode selection, then the side-effect contract — a sensible order with no filler sentences. The side-effect sentence is dense (nested clause about 'a new end date with no employment starting the next day') but the complexity is inherent to the behavior being described.

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

Completeness3/5

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

For a 29-parameter mutation tool with no output schema and only 31% schema coverage, the description covers mode selection and side effects well but leaves important ground unexplained, notably whether partially supplied updates preserve or clear unmentioned fields. Adequate for calling it, not complete for calling it confidently.

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?

With 29 parameters and only 31% schema description coverage, the description carries a heavier burden than usual. It adds real meaning for one key parameter (id: omit to create, pass to update) and groups the field families ('contact and identity details, role, department, employments and standing package'), but it does not explain the many undescribed scalars (number, idnumber, taxnumber, starred, archived, notes) nor whether omitting a scalar on update clears or preserves it. Partial compensation, not full.

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?

Opens with a specific verb pair and resource ('Create or update a payroll employee') and then scopes exactly what the tool covers: name, number, contact and identity details, role, department, employments and standing package. The closing clause ('Writes no payslip and posts nothing to the ledger') implicitly separates it from save_payslip and save_journal_entry, so an agent can place it among siblings without opening the schema.

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?

States the decisive rule for the two modes: 'Omit id to create; pass an id to update that employee.' That is explicit, actionable routing guidance. It stops short of naming alternatives or warning when not to use this tool versus the more specialized save_leave_* / save_payslip tools, so it is clear context rather than full when/when-not guidance.

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