Skip to main content
Glama

manage_tax_periods

Destructive

Manage tax periods. Use action='list' to see available periods, 'create' to create a new period directly, 'lock' to lock a listed period and every earlier one, or 'unlock' to unlock a previous period and all later locked periods. Both 'lock' and 'unlock' take a periodId from action='list' and change lock state only — neither deletes a period nor opens a new one; use action='create' for that. Locking finalises the period. Unlocking can change balances, calculated gains, and reports, and re-locking does not restore the previous results. Explain the impact and get the user's explicit confirmation before locking or unlocking. New to this session? Call the read_me_first tool for wider context on terminology and tool-usage patterns.

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": {
      "action": "<action>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "manage_tax_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesTax period action
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
endDateNoEnd date for the new period (required for create)
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
isLockedNoWhether a created period should be locked (create only)
periodIdNoPeriod ID from the list action (required for lock and unlock)
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: locking finalises the period, unlocking can change balances, calculated gains, and reports, and re-locking does not restore prior results. It also imposes a confirmation workflow and points to read_me_first for terminology.

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 action-by-action semantics, then the safety warning, then the read_me_first pointer. Every sentence carries routing or safety information; no filler.

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 destructive, multi-action mutation tool with no output schema needs side-effect disclosure and confirmation guidance, and both are present. Parameter documentation is fully delegated to a complete schema, so nothing an agent needs to call this safely 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%, so baseline is 3, but the description adds provenance the schema cannot: periodId must come from action='list', and it clarifies which parameters belong to which action (create vs lock/unlock). endDate and isLocked are not discussed beyond the schema's own notes.

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 the verb and resource ('Manage tax periods') and immediately enumerates the four supported actions, each with its own scope. An agent can distinguish 'lock' from 'create' or 'unlock' 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 per-action routing ('use action="create" for that'), states that lock/unlock require a periodId from action='list', and adds a hard precondition: explain impact and get explicit user confirmation before locking or unlocking. Exclusions are explicit ('neither deletes a period nor opens a new one').

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