Analyze Poem Rhyme
ganjoor_analyze_poem_rhymeDetect a Persian poem’s rhyme letter and rhyme pattern from its numeric id, returning structured JSON or readable Markdown for prosody analysis.
Instructions
Detect the rhyme letter (قافیه) and rhyme pattern of a poem by its numeric id.
Args:
poem_id (number): Numeric poem id
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns:
For JSON: { poem_id, rhyme, rhyme_letter, fail_verse } — rhyme is the full rhyming ending as the
prosody engine sees it, and rhyme_letter is its last character.
Examples:
"What is the rhyme of poem 2623?" -> poem_id=2623
Notes:
Some poems (short texts, composite editions) have no determinable rhyme; those return rhyme=null plus a fail_verse note explaining where analysis stopped.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"poem_id": "<poem_id>"
},
"name": "ganjoor_analyze_poem_rhyme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poem_id | Yes | Numeric poem id to analyze. | |
| response_format | No | Output format: 'markdown' for human-readable text (default) or 'json' for machine-readable structured data. | markdown |