Skip to main content
Glama

search

Find passages across Torah, Talmud, Midrash, and Halacha using English or Hebrew queries, with optional book filtering to locate relevant Jewish texts.

Instructions

Full-text search across all Jewish texts in Sefaria's library. Searches Torah, Talmud, Midrash, Halacha, and more. Supports English and Hebrew queries.

Examples: "love your neighbor", "tikkun olam", "ואהבת לרעך כמוך"

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": {
      "query": "<query>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookNoFilter to specific book (e.g., 'Genesis', 'Berakhot')
limitNoMax results to return (default: 10, max: 50)
queryYesSearch query (English or Hebrew)

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?

With no annotations, the description carries the full disclosure burden. It usefully reveals behavioral scope — searching the entire library rather than one book, and accepting both English and Hebrew — but says nothing about what results contain (snippets, references, relevance ranking) or how pagination beyond the limit parameter behaves. Adequate but incomplete for a search tool whose output feeds downstream retrieval.

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?

Front-loaded with the core statement, followed by corpus scope, language support, and concrete examples. Every line contributes information and there is no filler.

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?

Three parameters and no output schema, so the description should tell an agent what a result looks like in order to chain into get_text or get_links; it does not. Corpus scope and query examples are covered, but result shape and ranking behavior are absent.

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%, so book, limit, and query are already documented, and limit's default and max of 50 live in the schema. The description adds no syntax or semantic detail beyond the schema — the English/Hebrew note restates the query parameter's own description.

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 — 'Full-text search across all Jewish texts in Sefaria's library' — and enumerates the corpora covered (Torah, Talmud, Midrash, Halacha). It implicitly separates itself from retrieval siblings like get_text by framing the operation as search rather than fetch, but it never states that distinction explicitly.

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: the sample queries ('love your neighbor', 'tikkun olam', and a Hebrew phrase) show what a good query looks like, which is genuinely useful. However, there is no statement of when to prefer this over get_text, get_links, or get_related, and no exclusions or prerequisites are given.

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