Skip to main content
Glama

Get Object

get_object
Read-only

Read one Gramps record in full by Gramps ID or handle, including its fields, links and backlinks. Use it when you have an identifier and need the complete record.

Instructions

Read one record in full: its fields, its links to other records, and the records that point to it (backlinks, read-only here). Use it once you know the Gramps ID or handle; to find a record by text use search, to browse a type use list_objects, and for a person's relatives or dated events get_person_tree and get_timeline are shorter. A Gramps ID in the default format, such as I0001, names its type by prefix, so objectType is needed only with a handle or an ID in another format; with objectType the identifier is looked up among the records of that type, whatever its prefix. extended (people and families only) puts each event's date and place on its line, names the others in an event where the person is not Primary, such as a child's birth, and adds note text, tag names, citations and media in the same call. Returns plain text for one record, without paging: a header with its type, label, handle and Gramps ID, then its fields, its links one per line with label, handle and, for events, the role, and "Referenced by" sections for the backlinks. A missing record returns a not-found message with a hint.

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": {
      "identifier": "<identifier>"
    },
    "name": "get_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
extendedNoPeople and families only: also resolve the linked records (event dates and places, note text, tag names, citations, media) in the same call; default false is faster. Rejected for other types.
identifierYesGramps ID (e.g. I0001) or handle. The prefixes of the default ID format give the type: I person, F family, E event, P place, S source, C citation, N note, O media, R repository; tags have no Gramps ID.
objectTypeNoRecord type: person, family, event, place, source, citation, note, media, repository or tag. Omit for a Gramps ID in the default format; required for a handle or an ID in another format, such as S_ABC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.11.2
    • changedInput schema / properties / identifier / description
      Previous value: -"Gramps ID (e.g. I0001) or handle. ID prefixes give the type: I person, F family, E event, P place, S source, C citation, N note, O media, R repository, T tag."New value: +"Gramps ID (e.g. I0001) or handle. The prefixes of the default ID format give the type: I person, F family, E event, P place, S source, C citation, N note, O media, R repository; tags have no Gramps ID."
    • changedInput schema / properties / objectType / description
      Previous value: -"Record type: person, family, event, place, source, citation, note, media, repository or tag. Omit for a Gramps ID; required for a handle."New value: +"Record type: person, family, event, place, source, citation, note, media, repository or tag. Omit for a Gramps ID in the default format; required for a handle or an ID in another format, such as S_ABC."
  2. Changed3 schema fields changedv2.3.0
    • changedInput schema / properties / extended / description
      Previous value: -"For person and family only: resolve linked objects inline. Default: false."New value: +"People and families only: also resolve the linked records (event dates and places, note text, tag names, citations, media) in the same call; default false is faster. Rejected for other types."
    • changedInput schema / properties / identifier / description
      Previous value: -"Object handle or Gramps ID (e.g. I0001). Gramps ID prefixes: I person, F family, E event, P place, S source, C citation, N note, O media, R repository, T tag."New value: +"Gramps ID (e.g. I0001) or handle. ID prefixes give the type: I person, F family, E event, P place, S source, C citation, N note, O media, R repository, T tag."
    • changedInput schema / properties / objectType / description
      Previous value: -"Optional for a Gramps ID, whose prefix determines the type. Required for an opaque handle: person | family | event | place | source | citation | note | media | repository | tag."New value: +"Record type: person, family, event, place, source, citation, note, media, repository or tag. Omit for a Gramps ID; required for a handle."
  3. First observedv2.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds genuinely new behavior: extended-mode resolution of events, notes, tags, citations and media, the fact that backlinks are read-only here, and that a missing record yields a not-found message with a hint. It stops short of stating size limits or cost of extended on large records, so it is strong but not exhaustive.

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 purpose, then usage routing, then parameter logic, then return shape — a sensible order with no filler sentences. It is dense to the point of being one long block, and the ID-prefix explanation partially overlaps the schema, which keeps it from a perfect score.

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, and the description compensates by describing the exact plain-text return: a header with type, label, handle and Gramps ID, fields, one link per line with label/handle/event role, and "Referenced by" sections. Combined with the no-paging note and the not-found behavior, an agent knows both how to call it and what it will get back.

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 real semantic rules beyond the schema: objectType is needed only for handles or non-default-format IDs, and when supplied the identifier is resolved within that type "whatever its prefix," and extended is rejected for types other than people and families. That disambiguates the interaction between identifier and objectType rather than restating field docs.

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?

"Read one record in full: its fields, its links to other records, and the records that point to it (backlinks, read-only here)" gives a specific verb plus an explicit enumeration of what the record expansion includes. It is immediately distinguishable from search, list_objects, get_person_tree and get_timeline, which are named in the same breath.

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?

States the precondition ("Use it once you know the Gramps ID or handle") and then routes to alternatives by task: text lookup to search, type browsing to list_objects, relatives/dated events to get_person_tree and get_timeline because those are "shorter." Both when-to-use and when-to-prefer-a-sibling are spelled out.

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