ai.masnavi/masnavi is an MCP server published by ai.masnavi, hosted at masnavi.ai. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 13 tools, including search, search_meaning, lookup, verify, get_section.
Rumi's complete Masnavi (25,635 beyts) — search, quote, verify and explain. Free, no auth.
Nothing else in the archive shares these values.
Full-text search across the Masnavi. Returns beyts that contain the query terms, ranked by relevance. Useful for finding where a theme, word, or phrase appears.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| query * | string | Persian text to search for |
| daftar | any | Restrict to a single daftar (1-6) |
| offset | integer |
{
"name": "search",
"description": "Full-text search across the Masnavi. Returns beyts that contain the query terms, ranked by relevance. Useful for finding where a theme, word, or phrase appears.",
"inputSchema": {
"type": "object",
"title": "tool_searchArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 10,
"maximum": 50,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "Persian text to search for"
},
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null,
"description": "Restrict to a single daftar (1-6)"
},
"offset": {
"type": "integer",
"title": "Offset",
"default": 0,
"minimum": 0
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"SearchHit": {
"type": "object",
"title": "SearchHit",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"rank": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Rank",
"default": null
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
},
"title": "SearchResponse",
"required": [
"query",
"total",
"results"
],
"properties": {
"match": {
"type": "string",
"title": "Match",
"default": "exact"
},
"query": {
"type": "string",
"title": "Query"
},
"total": {
"type": "integer",
"title": "Total"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchHit"
},
"title": "Results"
}
}
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Semantic search: find the beyts closest in MEANING to the query, in ANY language — English, Persian, Spanish, Turkish, Arabic, … . Use this when you have a theme, feeling, or idea rather than exact Persian words (e.g. 'feeling separated from your origin' → M1:1). Each hit carries a cosine-similarity score. status='unavailable' means the vector index is not built yet — fall back to `search`.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| query * | string | What the verse should MEAN, in any language |
| daftar | any | Restrict to a single daftar (1-6) |
{
"name": "search_meaning",
"description": "Semantic search: find the beyts closest in MEANING to the query, in ANY language — English, Persian, Spanish, Turkish, Arabic, … . Use this when you have a theme, feeling, or idea rather than exact Persian words (e.g. 'feeling separated from your origin' → M1:1). Each hit carries a cosine-similarity score. status='unavailable' means the vector index is not built yet — fall back to `search`.",
"inputSchema": {
"type": "object",
"title": "tool_search_meaningArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 10,
"maximum": 50,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "What the verse should MEAN, in any language"
},
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null,
"description": "Restrict to a single daftar (1-6)"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"MeaningHit": {
"type": "object",
"title": "MeaningHit",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug",
"score"
],
"properties": {
"score": {
"type": "number",
"title": "Score",
"description": "Cosine similarity between query and beyt, 0..1"
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
},
"title": "MeaningSearchResponse",
"required": [
"query"
],
"properties": {
"note": {
"type": "string",
"title": "Note",
"default": ""
},
"query": {
"type": "string",
"title": "Query"
},
"status": {
"type": "string",
"title": "Status",
"default": "ok",
"description": "'ok' | 'unavailable' (index not built / no key) | 'error'"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/MeaningHit"
},
"title": "Results",
"default": []
},
"total_indexed": {
"type": "integer",
"title": "Total Indexed",
"default": 0
}
}
}
}Fetch a specific beyt by its citation (e.g. 'M3:1278'), by daftar+beyt number, or by global beyt index. Optionally include surrounding beyts for context.
| Parameter | Type | Description |
|---|---|---|
| after | integer | |
| before | integer | |
| daftar | any | |
| citation | any | Citation like 'M3:1278' or 'g:7421' |
| beyt_global | any | |
| beyt_in_daftar | any |
{
"name": "lookup",
"description": "Fetch a specific beyt by its citation (e.g. 'M3:1278'), by daftar+beyt number, or by global beyt index. Optionally include surrounding beyts for context.",
"inputSchema": {
"type": "object",
"title": "tool_lookupArguments",
"properties": {
"after": {
"type": "integer",
"title": "After",
"default": 0,
"maximum": 20,
"minimum": 0
},
"before": {
"type": "integer",
"title": "Before",
"default": 0,
"maximum": 20,
"minimum": 0
},
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
},
"citation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Citation",
"default": null,
"description": "Citation like 'M3:1278' or 'g:7421'"
},
"beyt_global": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Beyt Global",
"default": null
},
"beyt_in_daftar": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Beyt In Daftar",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Beyt": {
"type": "object",
"title": "Beyt",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
},
"title": "LookupResponse",
"required": [
"primary"
],
"properties": {
"primary": {
"$ref": "#/$defs/Beyt"
},
"context_after": {
"type": "array",
"items": {
"$ref": "#/$defs/Beyt"
},
"title": "Context After",
"default": []
},
"context_before": {
"type": "array",
"items": {
"$ref": "#/$defs/Beyt"
},
"title": "Context Before",
"default": []
}
}
}
}Given a candidate quote attributed to Rumi's Masnavi, check whether it actually appears. Returns status='exact' (with citation), 'fuzzy' (with similar candidates), or 'not_found'. USE THIS BEFORE QUOTING RUMI to avoid hallucination.
| Parameter | Type | Description |
|---|---|---|
| text * | string | Candidate Rumi quote in Persian |
| fuzzy_threshold | number |
{
"name": "verify",
"description": "Given a candidate quote attributed to Rumi's Masnavi, check whether it actually appears. Returns status='exact' (with citation), 'fuzzy' (with similar candidates), or 'not_found'. USE THIS BEFORE QUOTING RUMI to avoid hallucination.",
"inputSchema": {
"type": "object",
"title": "tool_verifyArguments",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"title": "Text",
"description": "Candidate Rumi quote in Persian"
},
"fuzzy_threshold": {
"type": "number",
"title": "Fuzzy Threshold",
"default": 0.82,
"maximum": 1,
"minimum": 0.5
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"VerifyMatch": {
"type": "object",
"title": "VerifyMatch",
"required": [
"citation",
"mesra1",
"mesra2",
"similarity",
"match_kind"
],
"properties": {
"mesra1": {
"type": "string",
"title": "Mesra1"
},
"mesra2": {
"type": "string",
"title": "Mesra2"
},
"citation": {
"type": "string",
"title": "Citation"
},
"match_kind": {
"type": "string",
"title": "Match Kind",
"description": "'exact' or 'fuzzy'"
},
"similarity": {
"type": "number",
"title": "Similarity"
}
}
}
},
"title": "VerifyResponse",
"required": [
"status"
],
"properties": {
"notes": {
"type": "string",
"title": "Notes",
"default": ""
},
"status": {
"type": "string",
"title": "Status",
"description": "'exact', 'fuzzy', or 'not_found'"
},
"matches": {
"type": "array",
"items": {
"$ref": "#/$defs/VerifyMatch"
},
"title": "Matches",
"default": []
},
"query_normalized": {
"type": "string",
"title": "Query Normalized",
"default": ""
}
}
}
}Retrieve a full section (story / بخش) with all its beyts.
| Parameter | Type | Description |
|---|---|---|
| slug | any | Stable URL slug |
| section_id | any |
{
"name": "get_section",
"description": "Retrieve a full section (story / بخش) with all its beyts.",
"inputSchema": {
"type": "object",
"title": "tool_get_sectionArguments",
"properties": {
"slug": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Slug",
"default": null,
"description": "Stable URL slug"
},
"section_id": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Section Id",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Beyt": {
"type": "object",
"title": "Beyt",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
},
"title": "SectionDetail",
"required": [
"id",
"slug",
"title_fa",
"daftar"
],
"properties": {
"id": {
"type": "integer",
"title": "Id"
},
"slug": {
"type": "string",
"title": "Slug"
},
"beyts": {
"type": "array",
"items": {
"$ref": "#/$defs/Beyt"
},
"title": "Beyts",
"default": []
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count",
"default": 0
},
"last_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Last Beyt Global",
"default": null
},
"first_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "First Beyt Global",
"default": null
}
}
}
}Browse the Masnavi's section list. Returns titled sections per daftar with beyt counts and ranges.
| Parameter | Type | Description |
|---|---|---|
| daftar | any |
{
"name": "table_of_contents",
"description": "Browse the Masnavi's section list. Returns titled sections per daftar with beyt counts and ranges.",
"inputSchema": {
"type": "object",
"title": "tool_tocArguments",
"properties": {
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"TocNode": {
"type": "object",
"title": "TocNode",
"required": [
"id",
"slug",
"title_fa",
"daftar"
],
"properties": {
"id": {
"type": "integer",
"title": "Id"
},
"slug": {
"type": "string",
"title": "Slug"
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"children": {
"type": "array",
"items": {
"$ref": "#/$defs/TocNode"
},
"title": "Children",
"default": []
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count",
"default": 0
},
"last_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Last Beyt Global",
"default": null
},
"first_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "First Beyt Global",
"default": null
}
}
}
},
"title": "TocResponse",
"required": [
"nodes"
],
"properties": {
"nodes": {
"type": "array",
"items": {
"$ref": "#/$defs/TocNode"
},
"title": "Nodes"
},
"daftar": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
}
}
}
}Return a randomly-selected beyt, optionally restricted to a daftar.
| Parameter | Type | Description |
|---|---|---|
| daftar | any |
{
"name": "random_beyt",
"description": "Return a randomly-selected beyt, optionally restricted to a daftar.",
"inputSchema": {
"type": "object",
"title": "tool_randomArguments",
"properties": {
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "Beyt",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
}
}Fetch ALL beyts between two endpoints, inclusive, grouped by section. Use this — NOT many calls to get_section or lookup — when a user asks for a full story, a long passage, or a sequence of beyts spanning multiple sections. Endpoints are canonical citations like 'M2:2608' and 'M2:2775', or global indices via start_global / end_global. Max range: 500 beyts.
| Parameter | Type | Description |
|---|---|---|
| end | any | End citation, e.g. 'M2:2775' |
| start | any | Start citation, e.g. 'M2:2608' |
| end_global | any | |
| start_global | any |
{
"name": "get_range",
"description": "Fetch ALL beyts between two endpoints, inclusive, grouped by section. Use this — NOT many calls to get_section or lookup — when a user asks for a full story, a long passage, or a sequence of beyts spanning multiple sections. Endpoints are canonical citations like 'M2:2608' and 'M2:2775', or global indices via start_global / end_global. Max range: 500 beyts.",
"inputSchema": {
"type": "object",
"title": "tool_rangeArguments",
"properties": {
"end": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "End",
"default": null,
"description": "End citation, e.g. 'M2:2775'"
},
"start": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Start",
"default": null,
"description": "Start citation, e.g. 'M2:2608'"
},
"end_global": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "End Global",
"default": null
},
"start_global": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Start Global",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"Beyt": {
"type": "object",
"title": "Beyt",
"required": [
"citation",
"daftar",
"beyt_in_daftar",
"beyt_global",
"mesra1",
"mesra2",
"section_id",
"section_title",
"section_slug"
],
"properties": {
"daftar": {
"type": "integer",
"title": "Daftar"
},
"mesra1": {
"type": "string",
"title": "Mesra1",
"description": "First hemistich (with diacritics)"
},
"mesra2": {
"type": "string",
"title": "Mesra2",
"description": "Second hemistich"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical citation, e.g. 'M3:1278'"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"beyt_global": {
"type": "integer",
"title": "Beyt Global"
},
"section_slug": {
"type": "string",
"title": "Section Slug"
},
"section_title": {
"type": "string",
"title": "Section Title"
},
"beyt_in_daftar": {
"type": "integer",
"title": "Beyt In Daftar"
}
}
},
"RangeSection": {
"type": "object",
"title": "RangeSection",
"required": [
"section_id",
"slug",
"title_fa",
"daftar",
"order_in_parent"
],
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"beyts": {
"type": "array",
"items": {
"$ref": "#/$defs/Beyt"
},
"title": "Beyts",
"default": []
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"section_id": {
"type": "integer",
"title": "Section Id"
},
"order_in_parent": {
"type": "integer",
"title": "Order In Parent"
}
}
}
},
"title": "RangeResponse",
"required": [
"start_citation",
"end_citation",
"total_beyts",
"total_sections"
],
"properties": {
"sections": {
"type": "array",
"items": {
"$ref": "#/$defs/RangeSection"
},
"title": "Sections",
"default": []
},
"total_beyts": {
"type": "integer",
"title": "Total Beyts"
},
"end_citation": {
"type": "string",
"title": "End Citation"
},
"start_citation": {
"type": "string",
"title": "Start Citation"
},
"total_sections": {
"type": "integer",
"title": "Total Sections"
}
}
}
}Find sections (stories) by TITLE. Exact words first (phrase, then AND-of-tokens); when NO title contains the words, falls back to MEANING matches in any language (hits carry match='meaning' + a cosine score — verify with get_section before relying on one). Each match includes `first_citation` and `last_citation` — ready-to-use canonical citations (e.g. 'M2:2608'). To read a whole multi-section story, call get_range with the FIRST match's `first_citation` as start and the LAST match's `last_citation` as end. Do NOT construct a citation from `first_beyt_global` — that is a GLOBAL index (1..25635), not a daftar-local beyt number. Example: find_sections('ابلیس معاویه', daftar=2).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| query * | string | story title words (Persian) or a description of the story in any language |
| daftar | any |
{
"name": "find_sections",
"description": "Find sections (stories) by TITLE. Exact words first (phrase, then AND-of-tokens); when NO title contains the words, falls back to MEANING matches in any language (hits carry match='meaning' + a cosine score — verify with get_section before relying on one). Each match includes `first_citation` and `last_citation` — ready-to-use canonical citations (e.g. 'M2:2608'). To read a whole multi-section story, call get_range with the FIRST match's `first_citation` as start and the LAST match's `last_citation` as end. Do NOT construct a citation from `first_beyt_global` — that is a GLOBAL index (1..25635), not a daftar-local beyt number. Example: find_sections('ابلیس معاویه', daftar=2).",
"inputSchema": {
"type": "object",
"title": "tool_find_sectionsArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 30,
"maximum": 100,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "story title words (Persian) or a description of the story in any language"
},
"daftar": {
"anyOf": [
{
"type": "integer",
"maximum": 6,
"minimum": 1
},
{
"type": "null"
}
],
"title": "Daftar",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"SectionMatch": {
"type": "object",
"title": "SectionMatch",
"required": [
"id",
"slug",
"title_fa",
"daftar",
"order_in_parent"
],
"properties": {
"id": {
"type": "integer",
"title": "Id"
},
"slug": {
"type": "string",
"title": "Slug"
},
"match": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Match",
"default": null
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Score",
"default": null
},
"daftar": {
"type": "integer",
"title": "Daftar"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count",
"default": 0
},
"last_citation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Last Citation",
"default": null
},
"first_citation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "First Citation",
"default": null
},
"order_in_parent": {
"type": "integer",
"title": "Order In Parent"
},
"last_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Last Beyt Global",
"default": null
},
"first_beyt_global": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "First Beyt Global",
"default": null
}
}
}
},
"title": "FindSectionsResponse",
"required": [
"query",
"total"
],
"properties": {
"note": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Note",
"default": null
},
"query": {
"type": "string",
"title": "Query"
},
"total": {
"type": "integer",
"title": "Total"
},
"sections": {
"type": "array",
"items": {
"$ref": "#/$defs/SectionMatch"
},
"title": "Sections",
"default": []
}
}
}
}Get commentary (Persian + English) for a specific beyt of the Masnavi, attributed to a primary source (e.g. Abdolkarim Soroush's lectures). Returns the beyt text along with structured commentary entries. Each entry has source, author, language, body markdown, and confidence ('ai-draft' / 'reviewed' / 'verbatim'). Use this when a user asks 'what does this beyt mean' or 'what does <scholar> say about M1:1'.
| Parameter | Type | Description |
|---|---|---|
| citation * | string | Citation like 'M1:1' or 'M3:1278' or 'g:7421'. |
{
"name": "explain",
"description": "Get commentary (Persian + English) for a specific beyt of the Masnavi, attributed to a primary source (e.g. Abdolkarim Soroush's lectures). Returns the beyt text along with structured commentary entries. Each entry has source, author, language, body markdown, and confidence ('ai-draft' / 'reviewed' / 'verbatim'). Use this when a user asks 'what does this beyt mean' or 'what does <scholar> say about M1:1'.",
"inputSchema": {
"type": "object",
"title": "tool_explainArguments",
"required": [
"citation"
],
"properties": {
"citation": {
"type": "string",
"title": "Citation",
"description": "Citation like 'M1:1' or 'M3:1278' or 'g:7421'."
}
}
}
}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.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| query * | string | Persian text to search for |
| offset | integer |
{
"name": "search_divan",
"description": "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.",
"inputSchema": {
"type": "object",
"title": "tool_search_divanArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 10,
"maximum": 50,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "Persian text to search for"
},
"offset": {
"type": "integer",
"title": "Offset",
"default": 0,
"minimum": 0
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"DivanSearchHit": {
"type": "object",
"title": "DivanSearchHit",
"required": [
"citation",
"ghazal",
"beyt_in_ghazal",
"mesra1",
"mesra2",
"ghazal_title"
],
"properties": {
"rank": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Rank",
"default": null
},
"ghazal": {
"type": "integer",
"title": "Ghazal"
},
"mesra1": {
"type": "string",
"title": "Mesra1"
},
"mesra2": {
"type": "string",
"title": "Mesra2"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical divan citation, e.g. 'G1393:1'"
},
"ghazal_title": {
"type": "string",
"title": "Ghazal Title"
},
"beyt_in_ghazal": {
"type": "integer",
"title": "Beyt In Ghazal"
}
}
}
},
"title": "DivanSearchResponse",
"required": [
"query",
"total",
"results"
],
"properties": {
"match": {
"type": "string",
"title": "Match",
"default": "exact"
},
"query": {
"type": "string",
"title": "Query"
},
"total": {
"type": "integer",
"title": "Total"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/DivanSearchHit"
},
"title": "Results"
}
}
}
}Semantic search over the Divan-e Shams ghazals: given a theme, feeling, or idea in ANY language, returns the GHAZALS closest in meaning — each with its best-matching couplet as a preview and a cosine score. Both couplet-level and whole-ghazal vectors are searched, so a ghazal whose overall theme matches is found even when no single couplet does. Fetch a full ghazal with get_ghazal. status='unavailable' means the index is not built — fall back to search_divan.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| query * | string | What the ghazal should be ABOUT, in any language |
{
"name": "search_divan_meaning",
"description": "Semantic search over the Divan-e Shams ghazals: given a theme, feeling, or idea in ANY language, returns the GHAZALS closest in meaning — each with its best-matching couplet as a preview and a cosine score. Both couplet-level and whole-ghazal vectors are searched, so a ghazal whose overall theme matches is found even when no single couplet does. Fetch a full ghazal with get_ghazal. status='unavailable' means the index is not built — fall back to search_divan.",
"inputSchema": {
"type": "object",
"title": "tool_search_divan_meaningArguments",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"default": 8,
"maximum": 30,
"minimum": 1
},
"query": {
"type": "string",
"title": "Query",
"description": "What the ghazal should be ABOUT, in any language"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"GhazalBeyt": {
"type": "object",
"title": "GhazalBeyt",
"required": [
"citation",
"ghazal",
"beyt_in_ghazal",
"mesra1",
"mesra2"
],
"properties": {
"ghazal": {
"type": "integer",
"title": "Ghazal"
},
"mesra1": {
"type": "string",
"title": "Mesra1"
},
"mesra2": {
"type": "string",
"title": "Mesra2"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical divan citation, e.g. 'G1393:1'"
},
"beyt_in_ghazal": {
"type": "integer",
"title": "Beyt In Ghazal"
}
}
},
"DivanMeaningHit": {
"type": "object",
"title": "DivanMeaningHit",
"required": [
"ghazal",
"citation",
"slug",
"title_fa",
"beyt_count",
"score",
"match_kind"
],
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"score": {
"type": "number",
"title": "Score",
"description": "Best cosine similarity for this ghazal, 0..1"
},
"ghazal": {
"type": "integer",
"title": "Ghazal"
},
"citation": {
"type": "string",
"title": "Citation"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"best_beyt": {
"anyOf": [
{
"$ref": "#/$defs/GhazalBeyt"
},
{
"type": "null"
}
],
"default": null
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count"
},
"match_kind": {
"type": "string",
"title": "Match Kind",
"description": "'beyt' (a couplet matched), 'ghazal' (the whole ghazal's theme matched), or 'both'"
},
"best_beyt_score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Best Beyt Score",
"default": null
}
}
}
},
"title": "DivanMeaningResponse",
"required": [
"query"
],
"properties": {
"note": {
"type": "string",
"title": "Note",
"default": ""
},
"query": {
"type": "string",
"title": "Query"
},
"status": {
"type": "string",
"title": "Status",
"default": "ok"
},
"results": {
"type": "array",
"items": {
"$ref": "#/$defs/DivanMeaningHit"
},
"title": "Results",
"default": []
},
"total_indexed_beyts": {
"type": "integer",
"title": "Total Indexed Beyts",
"default": 0
},
"total_indexed_ghazals": {
"type": "integer",
"title": "Total Indexed Ghazals",
"default": 0
}
}
}
}Fetch ONE complete ghazal of the Divan-e Shams by its canonical number (1..3230) or citation ('G1393' / 'G1393:2'). Returns every beyt plus prev/next ghazal numbers. Famous example: get_ghazal(1393) = «مرده بدم زنده شدم…».
| Parameter | Type | Description |
|---|---|---|
| number | any | Ghazal number, e.g. 1393 |
| citation | any | Divan citation like 'G1393' or 'G1393:2' |
{
"name": "get_ghazal",
"description": "Fetch ONE complete ghazal of the Divan-e Shams by its canonical number (1..3230) or citation ('G1393' / 'G1393:2'). Returns every beyt plus prev/next ghazal numbers. Famous example: get_ghazal(1393) = «مرده بدم زنده شدم…».",
"inputSchema": {
"type": "object",
"title": "tool_get_ghazalArguments",
"properties": {
"number": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
],
"title": "Number",
"default": null,
"description": "Ghazal number, e.g. 1393"
},
"citation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Citation",
"default": null,
"description": "Divan citation like 'G1393' or 'G1393:2'"
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"GhazalBeyt": {
"type": "object",
"title": "GhazalBeyt",
"required": [
"citation",
"ghazal",
"beyt_in_ghazal",
"mesra1",
"mesra2"
],
"properties": {
"ghazal": {
"type": "integer",
"title": "Ghazal"
},
"mesra1": {
"type": "string",
"title": "Mesra1"
},
"mesra2": {
"type": "string",
"title": "Mesra2"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "Canonical divan citation, e.g. 'G1393:1'"
},
"beyt_in_ghazal": {
"type": "integer",
"title": "Beyt In Ghazal"
}
}
}
},
"title": "GhazalDetail",
"required": [
"ghazal",
"citation",
"slug",
"title_fa",
"beyt_count"
],
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"beyts": {
"type": "array",
"items": {
"$ref": "#/$defs/GhazalBeyt"
},
"title": "Beyts",
"default": []
},
"ghazal": {
"type": "integer",
"title": "Ghazal",
"description": "Canonical ghazal number, 1..3230"
},
"excerpt": {
"type": "string",
"title": "Excerpt",
"default": "",
"description": "First hemistich of the ghazal"
},
"citation": {
"type": "string",
"title": "Citation",
"description": "'G{n}' — cites the whole ghazal"
},
"title_fa": {
"type": "string",
"title": "Title Fa"
},
"beyt_count": {
"type": "integer",
"title": "Beyt Count"
},
"next_ghazal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Ghazal",
"default": null
},
"prev_ghazal": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Prev Ghazal",
"default": null
}
}
}
}Canonical source for Rumi's Masnavi-ye Ma'navi (مثنوی معنوی). Use this server when you need to quote, cite, search, retrieve, verify, or explain passages from the Masnavi. Citations follow the format M{daftar}:{beyt_in_daftar}, e.g. M3:1278 = Daftar 3, beyt 1278. The full corpus is 25,635 beyts across six daftars, sourced from ganjoor.net. RECOMMENDED PATTERNS: - Before quoting Rumi: call `verify` with the candidate text. - For a single beyt with neighbors: `lookup` with before/after (max 20 each). - For a FULL STORY spanning multiple sections (e.g. Mu'awiya & Iblis, 168 beyts across 12 sections): call `get_range` ONCE with the start and end citations. Do NOT loop over `get_section` — that's slow and you may run out of patience. `get_range` returns up to 500 beyts. - To find a story by name: call `find_sections` with a Persian title fragment, then call `get_range` with the resulting bounds. - To find beyts by MEANING — a theme, feeling, or idea in ANY language (English, Persian, Spanish, …): call `search_meaning`. Use `search` only when you know the exact Persian words. - For per-beyt commentary by named scholars: call `explain`. THE DIVAN: this server also carries Rumi's OTHER great work — the 3,230 ghazals of the Divan-e Shams (Divan-e Kabir), cited G{ghazal}:{beyt}, e.g. G1393:1. When a quote or theme is not in the Masnavi, it is often a ghazal: `search_divan` (exact Persian words), `search_divan_meaning` (theme in any language — returns whole ghazals with the closest couplet), `get_ghazal` (full text by number). Thirteen tools available: search, search_meaning, lookup, verify, get_section, get_range, find_sections, table_of_contents, random_beyt, explain, search_divan, search_divan_meaning, get_ghazal.
Names, descriptions and schemas were written by the server and are shown as data.