Get Poem Sections
ganjoor_get_poem_sectionsRetrieve a poem’s structural sections—stanzas, couplets, and tercets—by poem ID to analyze each form’s metre, rhyme, and section type.
Instructions
Get the structural sections of a poem — the stanzas (بند), couplets (مثنوی), and tercets (رباعی) it is built from.
Ganjoor models a poem as nested sections so that poetry written in distinct forms within one poem (e.g. a ghazal that closes with a qet'e) can be analysed per-section.
Args:
poem_id (number): Numeric poem id
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON: { poem_id, section_count, sections: [{ id, index, number, section_type, verse_type, metre, rhyme }] }
Examples:
"What is the structure of poem 2623?" -> poem_id=2623
Notes:
Section
indexvalues feed directly into ganjoor_get_related_sections.
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_get_poem_sections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poem_id | Yes | Numeric poem id. | |
| response_format | No | Output format: 'markdown' for human-readable text (default) or 'json' for machine-readable structured data. | markdown |