Skip to main content
Glama

Octobooks

Lock date for all but advisers

lock_date
Destructive

The lock date for everyone but advisers (Xero's lock dates): nobody but an adviser posts on or before it. action=read: the date, its reason, the lock date from filing, whether the connected AI may set it, and the history. action=set with date (YYYY-MM-DD, not in the future) and reason; action=unlock with reason. The connected AI sets and lifts it only where the owner switched that on (Adviser and audit, the switch for the AI and this lock date); otherwise the owner sets it there. Round 793: read also names each VAT registration's own VAT lock (set and lifted by a person on Period close, Lock dates); action=exceptions: what was posted into a locked time and by whom (before the adviser lock date in force then, into a month after it was unlocked, with VAT in a filed VAT period), newest at the top. Round 794, while the owner's switch "My AI may set the VAT lock and lift the filing lock" is on (on unless switched off; Period close, Lock dates; read says you_may_lock_vat): action=vat_lock with registration, date (empty lifts it) and reason; action=lift with date (the lock date from filing moved back to it; empty clears it) and reason. Off, both stay the owner's.

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

Input Schema

NameRequiredDescriptionDefault
dateNo
actionNoread
reasonNo
companyNo
registrationNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the destructiveHint=true annotation, the description discloses real behavior: the lock blocks posting on or before the date for everyone but advisers, setting and lifting require the owner to have switched on the adviser/AI permission, and the VAT lock and filing lock are gated by a separate owner switch that is on by default. It stops short of saying what happens to existing data or how a mistaken lock is fully remediated, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and permission gate are front-loaded, which is good, but the body is a single dense paragraph thick with parenthetical UI paths ('Period close, Lock dates') and changelog artifacts ('Round 793', 'Round 794') that do not help an agent decide or invoke correctly. The signal is real but padded.

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?

For a multi-mode mutation tool with an output schema available and annotations covering the safety profile, the description is largely complete: it covers permissions, each action's inputs and effects, and the AI-versus-owner gating. The one material gap is the unexplained 'company' parameter, which an agent may need to scope the lock.

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 0% schema description coverage the description must carry the load, and it does explain action values, date format ('YYYY-MM-DD, not in the future'), empty-date semantics for vat_lock/lift, reason, and registration for the VAT lock. However the 'company' parameter is never mentioned anywhere in the description, leaving one of five parameters undocumented in both schema and prose.

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?

The description names a concrete resource and scope ('the lock date for everyone but advisers (Xero's lock dates)') and enumerates the distinct operations it exposes (read, set, unlock, exceptions, vat_lock, lift), so an agent knows exactly what domain it is operating in. It does not name sibling tools it differs from, and the multi-action enumeration makes the single core purpose slightly diffuse, so it falls short of a 5.

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?

Each action is tied to a clear condition: read to inspect, set with a non-future date and reason, unlock with reason, exceptions to audit postings into locked time, and vat_lock/lift only while the owner's switch is on. This is strong conditional guidance, though it frames alternatives as actions within the same tool rather than contrasting with other tools an agent might pick.

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