Skip to main content
Glama

manage_history

Destructive

The edit trail of records. list: edits with old and new values. undo: take back a record's last edit, a record you created (if nothing refers to it), or a delete with everything removed with it (a deleted project: its old name and id); rows changed since are skipped and listed. who: who did what (app, model, machine), filtered and paged. metrics: usage counts only (brief sizes, how often search and ask returned records). Logged changes (kind=change): find them with search. Reads: list, who, metrics. list and undo require project. Returns {history}, the undo result, or {rows, page}.

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>"
    },
    "name": "manage_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNowho: page number. Default 1.
limitNolist / who: max rows. Default 20, max 100.
modelNoModel name if known. Never guess.
sinceNowho: from this local time, such as 2026-10-17.
untilNowho: up to this local time.
actionYesThe operation; see the tool description.
by_appNowho: only apps whose name contains this.
projectNoProject name or id. Required for list and undo; who: omit for all.
by_modelNowho: only models whose name contains this.
record_idNolist: only this record. undo: required.
by_machineNowho: only this machine or workspace.
record_typeNolist: only this record type. undo: required.

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?

Annotations already flag destructiveHint=true and non-idempotent, and the description adds the substantive detail those flags cannot convey: undo will skip and list rows changed since, will remove a record you created only if nothing refers to it, and a deleted project is restored with its old name and id. That is real consequence-level disclosure for a destructive operation. Return shapes are summarized ({history}, undo result, {rows, page}) though not exhaustively.

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?

It is short and front-loaded with the resource, but written in clipped fragments ('who: who did what (app, model, machine), filtered and paged') and a tangled clause ('a delete with everything removed with it (a deleted project: its old name and id)'). Every sentence carries content, yet the density costs parseability for an agent skimming action semantics.

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 12-parameter, four-action tool with no output schema, the description covers all actions, the read/write split, prerequisites, undo edge cases, and rough return shapes. With 100% schema coverage the remaining burden is light, but the terse phrasing leaves some undo preconditions (e.g. what 'nothing refers to it' means precisely) for the agent to infer.

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 100%, so every parameter is already documented, including which action each filter applies to and the project/record_id/record_type requirements for list and undo. The description restates a few of those requirements ('list and undo require project', 'filtered and paged') but adds no meaning the schema lacks. Baseline 3 applies.

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?

Opens with a specific framing ('edit trail of records') and then enumerates all four actions with concrete scope: list edits with old/new values, undo last edit or creation or delete, who did what, metrics as usage counts. It is clearly distinguishable from siblings like manage_todos or search because it is scoped to the audit trail. It falls short of 5 only because the telegraphic fragment style makes the exact boundary of each action slightly harder to grasp than a plain sentence would.

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?

Explicitly separates reads ('Reads: list, who, metrics') from the mutating 'undo', states which actions require the project parameter, and routes record-type 'change' lookups to the search sibling. It does not state outright when NOT to use undo (e.g. what to do if the record is not in history), which keeps it below 5.

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