Skip to main content
Glama
ianderso
by ianderso

run_report

Idempotent

Generate a Gramps report file with custom options, running in the background and returning a task_id to poll for completion.

Instructions

Generate a report and return the file it produced.

Living people and private records are left out (living_people 0, incl_private false) unless you pass those options or include_private; Gramps' own default includes both.

Usually runs in the background, returning a task_id to poll with get_task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoLanguage code for the report output.
optionsNoOverrides for the report's defaults, merged over them. Common keys: 'pid' (the central person's gramps_id), 'maxgen', 'off' (output format), 'living_people'.
report_idYesReport id, from list_reports.
include_privateNoShow living people and private records in full. Only when the user asks for them; they are withheld by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With annotations present (readOnlyHint=false, idempotentHint=true), the description adds real behavioral value beyond them: privacy defaults that differ from Gramps' own defaults, and the dual return path (file vs. background task_id). The background/polling behavior is exactly the kind of context an agent needs and no annotation conveys. It does not, however, state permissions or side effects of writing the file.

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, front-loaded with the action and return. The parenthetical option dump is slightly noisy but each sentence carries load (privacy defaults, return path, polling).

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 carries the burden of describing return values and does so (file, or task_id to poll with get_task). Privacy semantics and the background-execution caveat are covered, leaving only permissions/error behavior unstated.

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 adds genuine nuance beyond the schema by explaining that living_people/incl_private defaults diverge from Gramps' own defaults, and by connecting options/include_private to that behavior. This is meaningful added meaning, not just repetition.

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?

The description states a specific verb+resource ('Generate a report and return the file it produced'), which clearly distinguishes it from list_reports and get_report_options among siblings. It stops short of naming those siblings explicitly, so an agent must infer the boundary from the domain.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a conditional trigger ('unless you pass those options or include_private') and explains polling via get_task, which is useful routing. However it never states when to call run_report vs. list_reports/get_report_options, nor any prerequisite (like needing a valid report_id from list_reports, which is only implied by the schema).

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