{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "masnavi.ai",
    "site": "masnavi.ai",
    "addresses": [
      {
        "address": "172.67.175.40",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "104.21.48.6",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2606:4700:3035::ac43:af28",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2606:4700:3031::6815:3006",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "172.67.175.40",
          "104.21.48.6",
          "2606:4700:3035::ac43:af28",
          "2606:4700:3031::6815:3006"
        ],
        "first_seen": "2026-11-23T05:05:04.005Z",
        "last_seen": "2026-11-24T05:06:01.949Z",
        "checks": 2
      },
      {
        "addresses": [
          "172.67.175.40",
          "104.21.48.6",
          "2606:4700:3031::6815:3006",
          "2606:4700:3035::ac43:af28"
        ],
        "first_seen": "2026-11-22T05:04:18.672Z",
        "last_seen": "2026-11-22T05:04:18.672Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "masnavi",
      "version": "1.27.1",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "ai.masnavi",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/shahhoseini/masnavi-mcp",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "1500",
    "server_name": "ai.masnavi/masnavi",
    "url": "https://masnavi.ai/mcp",
    "host": "masnavi.ai",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-24T05:06:01.949Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "096bb61f5b4c11ee6f959651d3b37f403374245370bbd52cf10be891bd258f92",
    "first_listed_at": "2026-11-21T05:04:01.280Z",
    "created_at": "2026-11-21T04:35:17.995Z",
    "resolved_addresses": [
      "172.67.175.40",
      "104.21.48.6",
      "2606:4700:3035::ac43:af28",
      "2606:4700:3031::6815:3006"
    ]
  },
  "server": {
    "name": "ai.masnavi/masnavi",
    "title": null,
    "description": "Rumi's complete Masnavi (25,635 beyts) — search, quote, verify and explain. Free, no auth.",
    "version": "1.0.0",
    "registry_status": "active",
    "repository_url": "https://github.com/shahhoseini/masnavi-mcp",
    "website_url": "https://masnavi.ai",
    "published_at": "2026-06-12T19:48:44.714Z",
    "updated_at": "2026-06-12T19:48:44.714Z",
    "first_seen": "2026-11-21T04:35:17.459Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T14:52:07.599Z"
  },
  "operator": {
    "key": "masnavi.ai",
    "name": "masnavi.ai",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 4,
    "answered": 4,
    "answered_percent": 100,
    "avg_listing_latency_ms": 906,
    "first_check_in_window": "2026-11-21T05:04:01.280Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-24",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "096bb61f5b4c11ee6f959651d3b37f403374245370bbd52cf10be891bd258f92",
    "tools": 13,
    "resources": 2,
    "prompts": 3,
    "first_seen": "2026-11-21T05:04:02.325Z",
    "tool_names": [
      "search",
      "search_meaning",
      "lookup",
      "verify",
      "get_section",
      "table_of_contents",
      "random_beyt",
      "get_range",
      "find_sections",
      "explain",
      "search_divan",
      "search_divan_meaning",
      "get_ghazal"
    ],
    "declared": {
      "tools": [
        {
          "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"
              }
            }
          }
        },
        {
          "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
              }
            }
          }
        },
        {
          "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": []
              }
            }
          }
        },
        {
          "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": ""
              }
            }
          }
        },
        {
          "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
              }
            }
          }
        },
        {
          "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
              }
            }
          }
        },
        {
          "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"
              }
            }
          }
        },
        {
          "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"
              }
            }
          }
        },
        {
          "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": []
              }
            }
          }
        },
        {
          "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'."
              }
            }
          }
        },
        {
          "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"
              }
            }
          }
        },
        {
          "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
              }
            }
          }
        },
        {
          "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
              }
            }
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "res_about",
          "uri": "masnavi://about",
          "mimeType": "text/plain",
          "description": ""
        },
        {
          "name": "res_schema",
          "uri": "masnavi://schema",
          "mimeType": "text/plain",
          "description": ""
        }
      ],
      "prompts": [
        {
          "name": "explicate",
          "description": "Explicate a single beyt: its plain meaning, imagery, and Sufi themes, grounded in the corpus and any recorded commentary.",
          "arguments": [
            {
              "name": "citation",
              "required": true,
              "description": "Beyt citation, e.g. 'M1:1' or 'M3:1278'."
            }
          ]
        },
        {
          "name": "find_parallels",
          "description": "Find and synthesize passages across the Masnavi that develop a given theme, image, or idea.",
          "arguments": [
            {
              "name": "theme",
              "required": true,
              "description": "A theme, image, or idea, e.g. 'the reed's separation', 'love as fire', 'the self / nafs'."
            }
          ]
        },
        {
          "name": "trace_story",
          "description": "Locate a named story/parable in the Masnavi and read it end to end before discussing it.",
          "arguments": [
            {
              "name": "name",
              "required": true,
              "description": "A story or parable, e.g. 'the elephant in the dark', 'the merchant and the parrot', 'Moses and the shepherd'."
            }
          ]
        }
      ]
    },
    "instructions": "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.\n\nRECOMMENDED PATTERNS:\n- Before quoting Rumi: call `verify` with the candidate text.\n- For a single beyt with neighbors: `lookup` with before/after (max 20 each).\n- 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.\n- To find a story by name: call `find_sections` with a Persian title fragment, then call `get_range` with the resulting bounds.\n- 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.\n- For per-beyt commentary by named scholars: call `explain`.\n\nTHE 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).\n\nThirteen 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."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}