Skip to main content
Glama

search

Find passages in the TLG by substring, simple regex, or multiple co-occurring patterns; scope by author, work, or corpus and control Greek accent matching.

Instructions

Brute-force text search of the TLG for one or more patterns (substring match; put spaces around a pattern to match whole words). Greek in Unicode: give all accents for strict matching or none for accent-insensitive matching. Simple regex (alternation, character classes, ? + *) is allowed. With several patterns, hits are passages where min_matches of them co-occur within the context. To find every inflected form of a word use morph_search instead. Unscoped searches cover the whole TLG and can take a while.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax passages to return (default 20).
worksNoSpecific works per author: {"0557": ["002"]} = Epictetus, Enchiridion. Find numbers with list_works.
corpusNoName of a saved Diogenes corpus (see list_corpora). Takes precedence over authors/works.
offsetNoSkip this many passages (for paging).
rejectNoDiscard hits whose context contains this pattern.
authorsNoTLG author numbers to search all works of, e.g. ["0557"]. Find numbers with list_authors.
contextNoContext per hit: "sentence" (default), "clause", "phrase", "paragraph", or a number of lines.
patternsYesOne or more search patterns.
count_onlyNoReturn only counts, no passage text.
min_matchesNoWith several patterns: how many must occur together ("all" by default).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does disclose meaningful behavior: cost/latency for unscoped searches, accent-sensitive vs accent-insensitive matching rules, limited regex support, and the min_matches co-occurrence semantics. It stops short of describing result shape, paging behavior, or the effect of reject/context, though those are partially covered by the schema.

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?

Opens with the core operation, then layers pattern syntax, then multi-pattern behavior, then the alternative tool and the performance caveat. Five sentences, each carrying non-redundant information, with the cheapest-to-read essentials front-loaded.

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?

For a 10-parameter tool with a nested works object, no annotations, and no output schema, the description covers what an agent most needs: matching semantics, cost, and the sibling alternative. Scoping parameters (corpus precedence over authors/works), reject, count_only, and context are left entirely to the schema descriptions, which are adequate but mean the prose alone is not self-sufficient.

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 would be 3, but the description adds real semantics the schema does not: substring vs whole-word matching, the accent convention for Greek Unicode, which regex constructs are permitted, and how multiple patterns interact via min_matches. The remaining parameters (works, corpus, reject, count_only, context) are only documented in the schema.

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 ('Brute-force text search of the TLG') plus the matcher semantics (substring, whole-word via spaced patterns), so an agent knows exactly what class of operation this is. It explicitly distinguishes itself from the sibling morph_search for inflection-aware searching, which settles the main ambiguity in this tool family.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing advice: use morph_search for inflected forms, and warns that unscoped searches span the whole TLG and 'can take a while', implicitly steering toward authors/works/corpus scoping. It also spells out the multi-pattern co-occurrence rule with min_matches, which is the main decision an agent must make before calling.

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