Skip to main content
Glama
books-as-data
by kintopp

sgbr_get_record

sgbr_get_record
Read-onlyIdempotent

Expand a search-result id into full bibliographic details, a CSL-JSON citation, IIIF manifest and scan/page access links, bridging search to page-level OCR and image tools.

Instructions

Expand one search-result id into that record's complete detail. Returns full bibliographic metadata, a ready-to-use CSL-JSON citation, the IIIF manifest URL, full-text and bulk-download links, thumbnail, license, and GND/GeoNames authorities. It is the hub between search and the page tools: digital.scan_id is what sgbr_get_fulltext, sgbr_locate_text, sgbr_get_page_ocr and sgbr_inspect_image address. A record listing several scans shows them as digital.scan_ids: pass one of those, since the other page tools refuse its id and sgbr_locate_text searches only the first. A record without a scan id (often partner-scanned) cannot be read or viewed page by page whatever its availability says; viewer_url is the citable link. Per-page media lists are summarised to counts and a license, not enumerated, and no page text is returned. A fold-out plate id returns the plate's record, whose scan_id is its parent volume's. An unknown id is an error result, not an empty record.

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": {
      "id": "<id>"
    },
    "name": "sgbr_get_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record id, exactly as returned in the `id` field of an sgbr_search result (e.g. "id991104550959705501_UBBS-00173645").

Output Schema

NameRequiredDescriptionDefault
idYes
dateNo
notesNo
placeNo
titleYes
extentNo
originNo
seriesNo
authorsNo
digitalNo
holdingNo
citationNo
languageNoEvery language the record carries; each one is a `filters.language` value.
subjectsNo
publisherNo
truncatedNo
viewer_urlNo
call_numberNo
availabilityNo
resource_typeNo
classificationNo
image_descriptionNoAI-generated German description of a foldout plate's depicted content (plates only).
record_identifierNo
table_of_contentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.30.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), but the description adds substantial behavior beyond them: per-page media are summarised to counts rather than enumerated, no page text is returned, an unknown id produces an error rather than an empty record, and a fold-out plate id resolves to the parent volume's record. These are exactly the surprises that would otherwise cause bad downstream calls.

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 return contents, then sibling routing, then caveats, so the important information comes first. Dense and mostly waste-free, though the long compound sentences (the scan_ids and plate-id clauses in particular) could be split for easier scanning.

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?

An output schema exists, yet the description still flags the non-obvious return properties (summarised media lists, no page text, viewer_url as the citable link) that a schema alone would undersell. For a one-parameter expansion tool with a rich return payload, nothing an agent needs before calling 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% and the schema already says the id must match the `id` field of an sgbr_search result, so most parameter meaning is structured. The description still contributes: unknown ids error out, and a plate id resolves to the parent volume's record, which is semantic behavior of the single parameter that the schema does not convey.

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: 'Expand one search-result id into that record's complete detail.' It also explicitly positions itself relative to siblings as 'the hub between search and the page tools', so an agent can distinguish it from sgbr_get_fulltext, sgbr_locate_text and the rest 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 explicit routing rules: use it to turn a search-result id into detail, then pass `digital.scan_id` to the page tools. It also names the failure cases (records with `digital.scan_ids` rather than a single id, records with no scan id at all, where `viewer_url` is the citable link) and states what to do instead, which is unusually complete when-to-use guidance.

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