Skip to main content
Glama
ianderso
by ianderso

cite_event

Attach a resolved or new citation to an existing Gramps event, sourcing records added elsewhere or flagged unsourced; other event fields stay unchanged.

Instructions

Attach a citation to an event that ALREADY exists.

Use this to source an event you didn't create with an inline citation -- e.g. one added through the Gramps web UI, or an unsourced event surfaced by list_unsourced_facts. The citation is resolved/created (existing handle/id, or an inline source_title + page + confidence) and appended to the event's citation list (no duplicates). Does not change any other event field.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventYesEvent handle or gramps_id (e.g. 'E0007').
citationYesCitation to attach to the event.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare the write profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false). The description adds useful behavior the annotations cannot convey: the citation is resolved-or-created, appended to the citation list with no duplicates, and no other event field is touched. It stops short of saying what the response looks like or how it behaves against a duplicate 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?

Three compact sentences, with the hard constraint ('ALREADY exists') front-loaded and the resolution/dedup behavior following. No filler, though the parenthetical about handles and inline fields is slightly dense.

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 non-destructive mutation tool with no output schema, the description covers what is written, what is left untouched, and the dedup rule. The only real gap is the unspecified return value and error behavior on a bad event handle.

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% and the embedded CitationInput docstring already spells out the citation/source/source_title precedence, page, and confidence semantics. The description only summarizes that precedence at a high level, so it adds little beyond the structured schema.

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 ('Attach a citation to an event') and immediately narrows the scope with the capitalized 'ALREADY exists', which separates it from the add_event/add_citation creation siblings. An agent can tell what it writes and to which object type without opening the schema.

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 concrete triggering conditions: source an event you didn't create inline, an event added via the Gramps web UI, or an event surfaced by list_unsourced_facts. It names a sibling tool as the discovery path but doesn't explicitly state when to prefer cite_event over cite_object or cite_child_link, so routing for the other cite_* variants is left to inference.

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