Skip to main content
Glama

get_links

Find commentaries, cross-references, and related sources linked to any Sefaria reference so you can study a verse from multiple perspectives.

Instructions

Get all texts linked to a reference - commentaries (Rashi, Ramban, Ibn Ezra), cross-references, and related sources.

Essential for deep Torah study and finding multiple perspectives on a verse.

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": {
      "ref": "<ref>"
    },
    "name": "get_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesSefaria reference to find links for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the kinds of content returned (commentaries, cross-references, related sources), but says nothing about whether results are paginated, how links are ordered, or whether a reference with no links returns an empty set.

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?

Two short sentences with the concrete behavior front-loaded and the link types enumerated immediately. The second sentence is motivational rather than operational, but it is brief enough not to burden the definition.

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?

This is a simple one-parameter read tool with no output schema and no annotations, and the description covers what the tool returns and why it is useful. The main remaining gap is how results are structured or ordered, which is minor for a tool of this complexity.

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 description coverage is 100% for the single 'ref' parameter, so the baseline is 3. The description's phrase 'linked to a reference' reinforces the parameter's meaning but adds no format or syntax detail beyond what the schema already states.

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 opens with a specific verb and resource ('Get all texts linked to a reference') and enumerates the link categories returned: commentaries, cross-references, and related sources. It does not explicitly distinguish itself from the sibling 'get_related', so it stops short of a 5.

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 through 'Essential for deep Torah study and finding multiple perspectives on a verse.' There is no explicit when-to-use guidance, no exclusions, and no mention of when to prefer 'get_related', 'get_text', or 'search' instead.

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