Ganjoor Poetry

v0.1.0
io.github.sepehr071/ganjoor-mcp Checked 5 days ago Published 15 days ago

Read-only Ganjoor (ganjoor.net) Persian poetry: poems with meanings, search, meters, audio.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gj_meters Poetic meters

List poetic meters (وزن) with couplet counts, biggest first; filter by name. Feed a name or id to gj_similar.

ParameterTypeDescription
querystring | nullPart of a meter name, e.g. 'رمل' or 'هزج مسدس'.

gj_similar Poems with same meter and rhyme

Find poems that share a meter and rhyme, with their first couplet; 10 per page.

ParameterTypeDescription
meter *Meter id or name (part of it is enough if unique), from gj_meters.
cat_idinteger | nullOnly this book/category.
pageintegerPage number.
poet_idinteger | nullOnly this poet.
rhyme_lettersstring | nullRhyme letters, e.g. 'ارا' (poem.rhyme_letters).

gj_recitations Recitations

List poem recitations (خوانش) with reciter, mp3 link, size and votes; give exactly one of poem_id, cat_id, latest.

ParameterTypeDescription
cat_idinteger | nullTop recitation of each poem in this book/category.
latestbooleanNewest published recitations site-wide.
limitintegerMax recitations for cat_id and latest.
poem_idinteger | nullRecitations of this poem, best first.
with_timingbooleanWith poem_id: add start milliseconds of each verse of the best recitation.

gj_literary Literary devices

Show rhetorical devices (آرایه: tashbih, esteare...) and concepts tagged in poems; coverage is partial, mostly Hafez.

ParameterTypeDescription
cat_idinteger | nullLimit tags/stats to this book/category.
poem_idinteger | nullRhetorical devices tagged in this poem, per couplet.
poet_idinteger | nullLimit tags/stats to this poet.
tagstring | nullDevice key or name (tags view), or concept search text.
viewstring | nullLookup when no poem_id: devices (the list with definitions), concepts (search `tag`), tags (couplets tagged with device `tag`), stats (tag counts). Default devices.

gj_words Word frequency

Count word use in a poet's or book's poems: the most frequent words, or how often one word appears.

ParameterTypeDescription
cat_idinteger | nullBook/category id (a poet's whole divan: its root cat_id).
limitintegerTop words to list.
poet_idinteger | nullPoet id (all their books together).
wordstring | nullCount this exact word instead of listing top words.

gj_people People and characters

Look up people and characters of epic poems (Shahnameh...): search, relations, family tree, or a book's cast.

ParameterTypeDescription
cat_idinteger | nullInstead: the main characters and links of a book (e.g. 33).
idinteger | nullPerson id from a search.
querystring | nullSearch characters by name or alias (e.g. 'رستم').
viewstringFor id: info, relations (kin and ties with evidence), familytree.

gj_places Places in poems

Find geotagged places (locations with latitude and longitude) named in poems, a book, or by name.

ParameterTypeDescription
cat_idinteger | nullPlaces named across a book/category, with a few poems each.
poem_idinteger | nullPlaces named in this poem, with the couplet.
querystring | nullSearch the place list by name (e.g. 'شیراز').

gj_museum Museum manuscripts

Browse Ganjoor museum manuscripts and scans (گنجینه): search, one manuscript's details, or one page image.

ParameterTypeDescription
itemstring | nullWith slug: one page slug, e.g. 'p0001'.
pageintegerPage number.
querystring | nullSearch manuscripts by title or poet; empty lists the newest.
slugstring | nullManuscript slug from a search, e.g. 'nowras'.

gj_find_verse Find the poem of a quoted line

Locate which poem and couplet a quoted line comes from, with the couplet's meaning. Spelling differences (ye/kaf, ZWNJ, diacritics, punctuation) are ignored.

ParameterTypeDescription
text *stringA line or couplet quoted from memory, in Persian.

gj_poem Read a poem

Read a poem: text by couplet with meanings, summary, meter, rhyme, source and previous/next poem. Meanings starting with «هوش مصنوعی:» are AI-written. Give id or url.

ParameterTypeDescription
idinteger | nullPoem id.
max_coupletsinteger | nullCouplets to return (80 default).
meaningsbooleanInclude the plain-Persian meaning of each couplet.
urlstring | nullOr the ganjoor.net path, e.g. /hafez/ghazal/sh170.

gj_poem_extras Poem recitations, replies and comments

Recitations with mp3 links, manuscript images, songs, related poems, quoting poems and reader comments. Each part is trimmed (about 10 items).

ParameterTypeDescription
id *integerPoem id (`id` from search or book results).
partsarray | nullWhich extras: recitations, images, songs, related, quoted, comments. Default recitations+related.

gj_faal Hafez faal or random poem

Draw a Hafez faal (a random ghazal of Hafez) or, with random=True, a random poem, read with meanings. Same output as gj_poem.

ParameterTypeDescription
poet_idinteger | nullWith random: only this poet (2 is Hafez).
randombooleanTrue for a random poem (any poet) instead of a Hafez faal.

gj_poets List poets

List poets with ids, nicknames, life years (Hijri) and birthplace, filtered by name or century. Without a query only the first 50 are shown.

ParameterTypeDescription
erastring | nullCentury name like 'هشتم' (Hijri century, e.g. 'قرن هشتم').
querystring | nullPart of the poet's name or nickname, e.g. 'حافظ'.

gj_poet Poet biography and books

A poet's biography (shortened) and the top-level books to open with gj_book. Give id or url.

ParameterTypeDescription
idinteger | nullPoet id.
urlstring | nullOr the poet path, e.g. /hafez.

gj_book Browse a book

Sub-books and the poems of one book or section, each with its first couplet, paged by 30. Open a poem with gj_poem.

ParameterTypeDescription
cat_id *integerBook or section id (cat_id from gj_poet or a poem's book).
pageintegerPage of poems, 30 per page.

gj_tajik Tajik Cyrillic poems

Search or read poems in Tajik Cyrillic transliteration (titles Cyrillic, poet names Persian). Give query to search, or poem_id to read one poem.

ParameterTypeDescription
pageintegerPage number, 10 results per page.
poem_idinteger | nullOr a poem id, to read it in Cyrillic.
querystring | nullSearch words in Tajik Cyrillic, e.g. 'ошиқ'.