Skip to main content
Glama

close_declaration

Closes an open tax declaration locked by another browser or device, releasing it for further access and editing.

Instructions

Unlock/close a declaration that is marked open in another browser or device.

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": {
      "declaration_id": "<declaration_id>"
    },
    "name": "close_declaration"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_typeNoEST
tax_yearNo
declaration_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully explains the lock origin (another browser/device), which is genuine context beyond structured fields, but for a mutation that releases a lock it says nothing about data-loss risk for unsaved changes, ownership/permission requirements, or whether the other session is notified. An output schema exists, so return values need not be covered, but the mutation semantics are thin.

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?

One sentence, front-loaded with the action and immediately qualified by the state that justifies it. Nothing is padded. Minor deduction because 'Unlock/close' presents two possibly different operations rather than committing to one.

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?

The scenario that motivates the tool is conveyed clearly, but for a three-parameter mutation with no annotations the definition is not complete: the defaulted tax_type/tax_year parameters and the consequences of releasing a lock are left unexplained. Adequate to identify the tool, insufficient to call it confidently in edge cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across all three parameters, so the description is the only source of meaning and it mentions none of them. declaration_id is inferable from the name, but tax_type and tax_year — both carrying non-obvious defaults of 'EST' and 2025 — are completely unaddressed, leaving the agent no guidance on when to override them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific action (unlock/close) on a specific resource (declaration) and adds a distinguishing state condition — the declaration is 'marked open in another browser or device'. That condition separates it from open_declaration or save_declaration in the sibling list. It stops short of 5 because the dual verb 'Unlock/close' hedges on what the tool actually does at the API level.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The trigger condition is implied well: use this when a declaration is stuck open in another session. But there is no explicit when-not guidance, no mention of what to do instead if the user simply wants their own session to take over, and no note about whether unsaved work in the other session is affected.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.