Skip to main content
Glama

taxapp.nz

Income history

get_income_history
Read-onlyIdempotent

Income totals across past New Zealand tax years, to compare years or see a trend: commission, rent and tenant reimbursements. Optionally for one of those or one contractor. Money is in NZD. Short stays have no totals here: list them with list_income, each with what the guest paid.

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

Input Schema

NameRequiredDescriptionDefault
income_typeNoOnly this income type: commission, rental or tenantReimbursement.
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.
contractor_contact_idNoA contractor's contact id, from list_contacts (contact type contractor), for one contractor's figures.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / income_type / description
      Previous value: -"Only this income type: commission (a contractor's commission income), rental (rent from a tenancy) or tenantReimbursement (a tenant repaying a bill the owner paid)."New value: +"Only this income type: commission, rental or tenantReimbursement."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world behavior, so the description's added value is the domain constraints: amounts are in NZD, results are aggregated over past tax years, and short-stay income is excluded. It does not describe granularity of the aggregation (e.g., one row per tax year) or volume, which would be the remaining useful disclosure.

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?

Three tight sentences: purpose first, optional scoping second, currency constraint third, and the exclusion/alternative last. No filler, and each clause carries distinct information.

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?

A read-only aggregate with three optional, fully documented parameters and rich annotations needs little more; the description supplies the domain framing (past tax years, NZD, excluded short stays) that structured fields cannot. The absence of an output schema means the shape of the totals is only implied, but 'income totals across past tax years' conveys enough to call it correctly.

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 all three parameters are already documented, including the enum and the organisation_id requirement rule. The description adds only light framing ('optionally for one of those or one contractor'), which hints that the filters can be combined but does not fully spell out the semantics of combining income_type with contractor_contact_id.

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 states a specific aggregation (income totals across past New Zealand tax years), names the covered income categories (commission, rent, tenant reimbursements), and explicitly carves out short stays as out of scope, which separates it from list_income.

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 clear use case (compare years or see a trend) and an explicit when-not with a named alternative ('Short stays ... list them with list_income'). It does not address how this differs from other reporting siblings such as get_profit_and_loss or get_tax_summary, but guidance within its own purpose is solid.

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.