Skip to main content
Glama
tillbooks

tillbooks

Official

gl_archive_purge

DestructiveIdempotent

Deletes archived accounting periods only after their ten-year retention expires, records the reason, and leaves a purge record in place; retention-window requests are refused and logged.

Instructions

Purge archived periods whose OR 958f ten-year retention has expired, with a recorded reason. Deletes ARCHIVE data only (structurally incapable of touching a live journal row), keeps a purge record where the periods were, and refuses inside the retention window with the date, recording the refusal: that record is the answer a data subject receives. Requires confirmed:true. CONSEQUENCE: Deletes archived periods whose ten-year retention has run out, with your reason; a purge record stays in their place. The purged data cannot be restored.

Input Schema

NameRequiredDescriptionDefault
reasonYes
periodToYes
confirmedNo
periodFromYes
workspaceIdYes
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond destructiveHint/idempotentHint by disclosing the structural guarantee that live journal rows cannot be touched, that a purge record is left in place, that refusal is itself recorded as a data-subject response, and that purged data is unrecoverable. Contradicts nothing in the annotations.

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 the core action and retention condition, and the CONSEQUENCE line is useful for a destructive op. It is somewhat repetitive, restating the deletion/retention facts a second time.

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 supplies enough behavioral context (record kept, refusal recorded, irreversibility) for safe invocation. The remaining gap is the date-range and idempotency parameter formats.

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 description coverage is 0%, so the description must carry parameter meaning; it explains reason and confirmed:true but leaves periodFrom/periodTo formats, workspaceId, and idempotencyKey undocumented. Partial compensation for a 6-parameter tool.

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 and resource (purge archived periods) with the governing condition (OR 958f ten-year retention expired) and explicitly bounds scope to ARCHIVE data only. Among siblings like gl_archive_query, gl_archive_periods, and gl_archive_import, this is unmistakably the destructive one.

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?

Gives clear conditions for use (retention expired, confirmed:true required) and for refusal (inside the retention window). It does not name a sibling alternative for the non-destructive cases, but the exclusion logic is spelled out.

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

Deploy Server

Other Tools