Skip to main content
Glama

morph_search

Finds every inflected form of a Greek lemma via Perseus morphology and the TLG word index, returning matching passages or counts to answer usage and frequency questions.

Instructions

Morphological (lemma) search: finds every inflected form of a Greek word via Diogenes' Perseus morphology data and the TLG word index, then returns the passages. Use this for questions like 'how often does X use the word Y in any form'. Give the dictionary form with accents (e.g. ἄσκησις); an inflected form also works. The result lists which forms were found and their counts. Note some forms are shared with other lemmata (e.g. ἀσκήσει is also a verb form), so inspect forms_found and the passages before reporting a count. If several lemmata match, the tool returns them and you choose with lemma_beta.

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": {
      "lemma": "<lemma>"
    },
    "name": "morph_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
formsNoSearch exactly these forms instead of deriving them from the lemma.
lemmaYesGreek word, Unicode with accents.
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).
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.
count_onlyNoReturn only counts, no passage text.
lemma_betaNoPick one lemma (beta code key from a previous ambiguous result or lookup_lemmata).
all_lemmataNoIf several lemmata match, search all of them.
form_filterNoOnly forms whose morphological analysis contains this text, e.g. "aor opt", "gen pl".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden, and it does so with real caveats: the result lists forms_found and their counts, some forms are shared across lemmata (ἀσκήσει doubling as a verb form), and the agent must inspect forms_found and passages before reporting a count. It omits failure modes (morphology misses for non-TLG words) and whether limit applies per lemma when all_lemmata is 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?

It is front-loaded with the verb and mechanism, then usage, then caveats, and every sentence is substantive. The caveat about shared forms and the lemma_beta aside briefly repeat schema information, so it is not perfectly lean.

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 12-parameter tool with nested objects, no annotations, and no output schema, it is strong: it explains what is returned (forms_found, counts, passages), how ambiguity resolves, and how to control count_only, once the schema's own parameter docs fill in the rest. Residual gaps are failure behavior and how limit and offset interact across multiple lemmata (all_lemmata).

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 the baseline is 3; the description mostly repeats structured data. It adds a little meaning to lemma ('give the dictionary form with accents; an inflected form also works') and describes the ambiguous-result workflow with lemma_beta, but it leaves forms, form_filter, context, and all_lemmata entirely to 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?

The description uses a specific verb and states exactly what the tool does: it finds every inflected form of a Greek word via Diogenes' Perseus morphology data and the TLG word index, then returns passages. It names the retrieval mechanism and the output, which sets it apart from a plain keyword sibling such as search.

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 a concrete question pattern ('how often does X use the word Y in any form') that tells the agent when to prefer it, and it says if several lemmata match, you choose with lemma_beta. It does not explicitly exclude alternatives such as word_list or plain search, and it never says when to use forms versus lemma.

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