Skip to main content
Glama

get_source

Fetch a verified exact substring with surrounding context by chunk or document ID to confirm citations and inspect source evidence.

Instructions

Fetch an exact verified substring and surrounding context window by chunk or doc ID.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
corpusNo
doc_idNo
windowNo
chunk_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. "Fetch" and "exact verified substring" convey a read-only, verbatim-fidelity operation and explain the context-window behavior, but nothing is said about behavior on invalid IDs, whether doc-level fetch differs from chunk-level, or any size limits.

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?

A single front-loaded sentence with zero filler; the key action and lookup mechanism come first.

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?

An output schema exists, so return values need no explanation, and the core operation is conveyed. However, for a tool with four entirely undocumented optional parameters and no annotations, the definition leaves the agent guessing which identifier combination to supply.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and all four parameters are optional, so the description must disambiguate them. It covers doc ID, chunk ID, and implicitly the window, but never mentions `corpus` at all, nor explains the relationship or precedence between `doc_id` and `chunk_id` — a critical gap when no parameter is required.

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 ("Fetch") and a precise resource ("an exact verified substring and surrounding context window"), plus the lookup keys (chunk or doc ID). This makes it distinguishable from search-style siblings, though it never names an alternative to contrast with.

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?

Usage is only implied: "by chunk or doc ID" suggests it is a follow-up call after you already have an identifier from a search result. There is no explicit when-to-use, no statement of which ID to prefer, and no guidance for the case where neither is known.

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

Deploy Server

Other Tools