Skip to main content
Glama
ianderso
by ianderso

event_span

Read-only

Measure elapsed time between two events to check plausibility, such as age at marriage or years from census to death.

Instructions

Measure the elapsed time between two events.

The arithmetic behind most plausibility checks: age at marriage, years between a census and a death, how long a widow waited. Doing this by hand from two formatted date strings is where transcription errors hide.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ageNoPhrase the result as an age rather than an interval.
event1YesHandle or gramps_id of the first event.
event2YesHandle or gramps_id of the second event.
precisionNoHow many units to include (years, months, days).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds rationale about avoiding transcription errors but does not disclose return format, error behavior, or precision handling beyond what the schema implies.

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 sentences that are front-loaded with the core action. The final sentence is somewhat wordy but adds useful rationale; no significant waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a computation tool with no output schema, the description does not explain what the result looks like (e.g., an interval string or age format). It covers purpose and use case but leaves a notable gap in return value expectations.

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 all four parameters are documented in the schema. The description adds no additional meaning for event handles, as_age, or precision, so the baseline of 3 is appropriate.

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?

States a specific verb and resource: 'Measure the elapsed time between two events.' It clearly distinguishes from event retrieval tools by focusing on the interval calculation, though it does not explicitly name a sibling it is not.

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?

Provides clear context for when to use it: 'The arithmetic behind most plausibility checks: age at marriage, years between a census and a death.' No alternatives or exclusions are named, but the use case is well-implied.

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