Skip to main content
Glama

taxapp.nz

Set a PAYE earner's salary

set_contact_paye_salary
DestructiveIdempotent

Sets the yearly salary or wages a person earns from an employer, taxed through PAYE, by their contact id from list_contacts. The contact must have the paye-earner contact type; add it with update_contact first if they do not. taxapp stacks their commission and rental income on top of it to work out the tax rate that applies; 0 when they have none. Only for an organisation where this connection may add and change records (list_organisations says which). The answer is the changed contact.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "contact_id": "<contact_id>",
      "annual_paye_salary": "<annual_paye_salary>"
    },
    "name": "set_contact_paye_salary"
  }
}

Input Schema

NameRequiredDescriptionDefault
contact_idYesThe contact's id, from list_contacts (a contact with the paye-earner type).
organisation_idNoThe id of the organisation to use, from list_organisations. Leave it out when the connection covers only one organisation; it is required when it covers more than one.
annual_paye_salaryYesTheir yearly PAYE salary in NZD, before tax.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / contact_id / description
      Previous value: -"The contact's id, from list_contacts (a contractor or property owner)."New value: +"The contact's id, from list_contacts (a contact with the paye-earner type)."
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag this as a non-read-only, destructive, idempotent write. The description adds meaningful context beyond that: taxapp stacks commission and rental income on top to derive the tax rate, and permission depends on the organisation. It stops short of saying the previous salary value is overwritten, which is the main destructive behavior an agent might need spelled out.

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-loads what is being set and for whom, then layers prerequisites, tax interaction, permission constraints, and the return value. Every sentence carries information, though the tax-rate clause is slightly dense and could be split for readability.

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?

With no output schema, the description correctly states the return value (the changed contact). It covers the prerequisite contact type, organisation permission, and downstream tax-rate effect. A short explicit note that an existing salary is replaced would close the remaining gap.

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?

Schema coverage is 100%, so the schema already documents contact_id, organisation_id, and annual_paye_salary. The description reinforces contact_id linkage to list_contacts and the organisation permission rule, but adds little syntax or format detail beyond the schema.

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 (sets) and resource (yearly PAYE salary/wages for a contact), scoped by contact id. An agent can distinguish this from update_contact or set_contact_acc_classifications 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 Guidelines5/5

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

Gives explicit prerequisites: the contact must already have the paye-earner type, and names update_contact as the step to take otherwise. Also states the organisation constraint and points to list_organisations to determine which organisation applies.

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.