Skip to main content
Glama

search_divan

Full-text search across the 34,603 beyts of the ghazals of the Divan-e Shams (Divan-e Kabir) — Rumi's lyric work, distinct from the Masnavi. Returns beyts with divan citations (G{ghazal}:{beyt}, e.g. G1393:1). Use when you know the exact Persian words; use search_divan_meaning for a theme in any language.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYesPersian text to search for
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchNoexact
queryYes
totalYes
resultsYes

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description must carry the behavioral disclosure burden. It explains the return format (divan citations like G1393:1) and the exact-match nature of the search. However, it does not explicitly state read-only behavior or address edge cases (e.g., no results, pagination), leaving a small gap in transparency.

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?

The description is three sentences, front-loaded with the core function, followed by return format and usage guidance. Every sentence earns its place, with no unnecessary details.

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?

The description covers the tool's scope, return format, and usage guidance, and an output schema is present, reducing the need to explain return values. It lacks explicit pagination or limit details, but these are likely handled by the output schema or standard search expectations, leaving the description adequately complete.

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

Parameters2/5

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

Schema description coverage is only 33% (query has a description, limit and offset do not). The description adds 'exact Persian words' for query but provides no explanation or guidance for limit and offset, failing to compensate for the low schema coverage despite the need to do so.

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 clearly states the tool performs full-text search across Rumi's ghazals (Divan-e Shams), distinct from the Masnavi, and explicitly returns beyts with divan citations. It differentiates from sibling tools by noting the alternative search_divan_meaning for theme-based search.

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?

The description explicitly provides a usage condition: 'Use when you know the exact Persian words' and recommends switching to search_divan_meaning for themes in any language. This clear guidance distinguishes the tool from its sibling and tells users exactly when to apply it.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool clearly targets a distinct operation: commentary, section title search, range retrieval, section retrieval, specific beyt lookup, random selection, full-text search, semantic search, table of contents, and quote verification. No overlap in purpose.

Naming Consistency3/5

Names are a mix of single verbs (explain, lookup, verify, search) and verb_noun with underscores (find_sections, get_range, get_section, search_meaning, random_beyt, table_of_contents). While readable, the lack of a uniform pattern reduces consistency.

Tool Count5/5

With 10 tools, the server covers all essential operations for exploring and verifying Masnavi content without being overwhelming. The count is well-scoped for its purpose.

Completeness5/5

The tool surface is comprehensive for a reference server: browsing, various search modes, targeted retrieval, commentary access, and quote verification. No obvious gaps for typical user queries.