Skip to main content
Glama

A paragraph in context

get_context
Read-onlyIdempotent

One paragraph of a work with the paragraphs around it (two each side by default), the section title and where it falls in the section; every paragraph in each of the work's languages, with its permanent link and citation. Useful after a find, a concordance hit or a reference, to read a quotation in its setting.

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_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoParagraphs on each side. Default 2.
idNoThe work: its id or address name from search_shelf (e.g. "plato-republic"), or a scriptura.si link.
urlNoA scriptura.si paragraph link (…/7/#p-3).
afterNo
beforeNo
sectionNo
paragraphNoParagraph, counted from 1 as read_work counts ("p-3", the page anchor, also works).

Output Schema

NameRequiredDescriptionDefault
idNo
urlNoPermanent scriptura.si link.
citeNoReady citation naming Scriptura, ending with the link.
codeNo
hintNo
workNo
afterNo
errorNoWhat went wrong, in plain words.
titleNo
authorNo
beforeNo
targetNo
sectionNo
positionNo
resourceNoThe same passage as a scriptura:// resource, readable as Markdown with resources/read.
sectionsNo
translatorNo
section_urlNoPermanent scriptura.si link.
suggestionsNo
section_titleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the default context window ('two each side by default') and the returned composition (section title, position, all languages, link and citation), which is useful context. It says nothing about permissions, rate limits, or partial matches, though, and the output schema already covers much of the return composition.

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?

One long opening sentence front-loads the returned content, followed by a compact usage sentence; no filler text. The first sentence is dense and would benefit from splitting, but every clause carries information.

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 7 parameters, none required, and an output schema in place, the description covers the main modes of identification and what comes back. The remaining gap is how to combine id vs url vs section+paragraph, and how after/before interact with n, which is left to inference.

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

Parameters3/5

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

Schema coverage is only 57%, and although the description mentions the default of 2 for the context window and the paragraph numbering semantics, those details are already documented in the schema. It adds nothing at all about the after, before and section parameters, which are the undocumented ones, so it does not compensate for the coverage gap. Baseline 3 is warranted.

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 names a specific verb and resource: it retrieves one paragraph plus the surrounding paragraphs, along with the section title, its position in the section, and every language version with permalink and citation. This clearly separates it from siblings such as read_work or search_passages, though it never names those alternatives explicitly.

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?

It gives explicit when-to-use guidance: 'Useful after a find, a concordance hit or a reference, to read a quotation in its setting.' That names the triggering situations clearly. However, it never says when not to use the tool or which sibling to choose instead, so it falls short of a 5.

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.

Resources