Skip to main content
Glama

Get Recent Changes

get_recent_changes
Read-only

View a tree's recent edit history newest first, or one record's change history with before-and-after values, to verify writes, identify who changed what, or find a transaction number to undo.

Instructions

Show the tree's recent edit history, newest first: each transaction's number, commit time (UTC), description, user, an undo marker, and each changed object's class, change kind (added/updated/deleted) and handle, with the first 10 objects of each transaction and how many more it changed. A link added or removed between objects appears as Reference from one handle to the other. limit counts transactions, not objects, and stops at the latest 100, so older history is out of reach here; list_objects with sort -change lists records by last edit instead. With identifier it shows one record's own history instead, from its first save, newest first: per change the time, added/updated/deleted, the user and the transaction, and the fields it changed as field: before → after (up to 12 per change), with linked records named; this needs Gramps Web API 3.22 or later. Use it to see what was changed last and by whom, who changed a field of a record and what it held before, to check that your own writes landed, or to find the number undo_change takes to revert a transaction; for the dated events of one person use get_timeline, and read a changed record with get_object.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many transactions to show, 1–100 (default 20); with identifier, how many changes of that record. Other values are clamped.
identifierNoShow this record's history instead: a Gramps ID (e.g. I0001) or handle. A deleted record is found by its handle, which the transaction that deleted it shows.
objectTypeNoThe record's type, needed with a handle or a Gramps ID in a custom format: person, family, event, place, source, citation, note, media, repository or tag. Omit for a Gramps ID such as I0001; used only with identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.11.2
    • changedInput schema / properties / objectType / description
      Previous value: -"The record's type with a handle: person, family, event, place, source, citation, note, media, repository or tag. Omit for a Gramps ID; used only with identifier."New value: +"The record's type, needed with a handle or a Gramps ID in a custom format: person, family, event, place, source, citation, note, media, repository or tag. Omit for a Gramps ID such as I0001; used only with identifier."
  2. Changed3 schema fields changedv2.11.0
    • addedInput schema / properties / identifier
      Added value: +{
      +  "default": null,
      +  "description": "Show this record's history instead: a Gramps ID (e.g. I0001) or handle. A deleted record is found by its handle, which the transaction that deleted it shows.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"How many transactions to show, 1–100 (default 20); other values are clamped."New value: +"How many transactions to show, 1–100 (default 20); with identifier, how many changes of that record. Other values are clamped."
    • addedInput schema / properties / objectType
      Added value: +{
      +  "default": null,
      +  "description": "The record's type with a handle: person, family, event, place, source, citation, note, media, repository or tag. Omit for a Gramps ID; used only with identifier.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Changed1 schema field changedv2.3.0
    • changedInput schema / properties / limit / description
      Previous value: -"How many history rows (clamped 1–100). Default 20."New value: +"How many transactions to show, 1–100 (default 20); other values are clamped."
  4. First observedv2.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, non-destructive, closed-world behavior, and the description still adds substantial context beyond them: the 100-transaction hard ceiling, that only the first 10 objects of each transaction are shown, the undo marker, the Reference representation for added/removed links, and the Gramps Web API 3.22+ requirement for identifier mode. It also explains how to reach a deleted record's history via its handle.

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-loaded with the primary behavior and return shape, then limit caveats, then the alternate identifier mode, then use cases — a sensible ordering. The prose is dense and clause-heavy, and the final use-case sentence is a long run-on, but almost every clause carries distinct operational information.

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?

There is no output schema, yet the description fully characterizes the return payload (transaction number, commit time in UTC, description, user, undo marker, changed object class/kind/handle) and the divergent shape in identifier mode. Limits, API version requirements, and routing to alternatives are all covered — nothing an agent needs to call it correctly 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 the baseline is 3, but the description contributes a real nuance the schema lacks: 'limit counts transactions, not objects' and that older history beyond the latest 100 is unreachable. The identifier/objectType pairing and deleted-record-by-handle behavior largely restate what the schema already documents.

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 (show the tree's recent edit history, newest first) and enumerates the returned fields precisely, then adds a second mode ('with identifier it shows one record's own history'). It explicitly contrasts with siblings list_objects (sort -change), get_timeline, and get_object, so an agent can discriminate without opening a 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 concrete when-to-use conditions: 'see what was changed last and by whom', 'who changed a field of a record and what it held before', 'check that your own writes landed', 'find the number undo_change takes to revert a transaction'. It also names the alternatives and the conditions that select them ('for the dated events of one person use get_timeline', 'read a changed record with get_object').

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