Skip to main content
Glama

Fetch one mirrored record

fetch_source_record
Read-onlyIdempotent

Read the indexed text of one public-source record by its recordId (returned by search_medical). Use after search when the excerpt is not enough. Returns a bounded text window; pass nextInput unchanged to continue. contentCapped reports text unavailable beyond the stored content.

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": {
      "recordId": "<recordId>"
    },
    "name": "fetch_source_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordIdYesrecordId from a search_medical result.
startIndexNoCharacter offset from the previous result's nextInput; omit or null to start reading.
contentHashNoThe contentHash from nextInput, to refuse a page from a changed record. Omit or null to begin a new read.

Output Schema

NameRequiredDescriptionDefault
urlYes
textYes
titleYes
endIndexYes
recordIdYes
nextInputYes
sourceKeyYes
truncatedYes
startIndexYes
contentHashYes
totalLengthYes
contentCappedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / contentHash
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[a-f0-9]{64}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The contentHash from nextInput, to refuse a page from a changed record. Omit or null to begin a new read."
      +}
    • addedInput schema / properties / startIndex
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 10000000,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Character offset from the previous result's nextInput; omit or null to start reading."
      +}
    • addedOutput schema / properties / contentCapped
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / contentHash
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / endIndex
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / nextInput
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "contentHash": {
      +          "type": "string"
      +        },
      +        "recordId": {
      +          "type": "string"
      +        },
      +        "startIndex": {
      +          "maximum": 9007199254740991,
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "recordId",
      +        "startIndex",
      +        "contentHash"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / startIndex
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / totalLength
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "recordId",
      -  "sourceKey",
      -  "title",
      -  "url",
      -  "text",
      -  "truncated"
      -]New value: +[
      +  "recordId",
      +  "sourceKey",
      +  "title",
      +  "url",
      +  "text",
      +  "truncated",
      +  "startIndex",
      +  "endIndex",
      +  "totalLength",
      +  "contentCapped",
      +  "contentHash",
      +  "nextInput"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuine behavior beyond that: results are a bounded text window, continuation requires passing nextInput unchanged, and contentCapped signals text that is unavailable rather than absent — useful pagination and truncation semantics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and resource, then the usage condition, then pagination mechanics. Every sentence carries distinct information with no restatement of the tool title.

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?

The tool is a paginated read with an output schema; the description covers the input origin, the paging protocol, and the meaning of contentCapped, so return-value explanation can be left to the output schema. Nothing needed for correct invocation 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%, so the baseline is 3, but the description adds a conceptual link the schema alone does not make obvious: startIndex and contentHash come from the previous result's nextInput, and contentHash is a guard against reading a page from a changed record. That meaning goes beyond the field-level descriptions.

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 ('Read the indexed text of one public-source record') and scopes it by the recordId identifier. It explicitly ties the identifier's origin to search_medical, so an agent can immediately tell it apart from the sibling search tools.

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?

'Use after search when the excerpt is not enough' gives a clear triggering condition and names search_medical as the preceding step. There is no explicit when-not or statement about other alternatives, so it falls slightly short of full 5-level routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.