Get Sections For A Couplet
ganjoor_get_couplet_sectionsIdentify which structural sections or stanzas contain a specific couplet by poem ID and 0-based couplet index, so you can analyze a poem's opening or closing sections.
Instructions
Find which structural sections a specific couplet of a poem belongs to.
A verse carries up to four nested section indices; this endpoint resolves one couplet to the stanzas that contain it, which you need when analysing a ghazal's opening or closing section.
Args:
poem_id (number): Numeric poem id
couplet_index (number): 0-based couplet number
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON: { poem_id, couplet_index, sections: [{ id, index, number, section_type, metre, rhyme }] }
Examples:
"Which section is couplet 5 of poem 2623 in?" -> poem_id=2623, couplet_index=5
Notes:
An empty list means the couplet index is out of range for that poem.
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>",
"couplet_index": "<couplet_index>"
},
"name": "ganjoor_get_couplet_sections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poem_id | Yes | Numeric poem id. | |
| couplet_index | Yes | 0-based couplet number. | |
| response_format | No | Output format: 'markdown' for human-readable text (default) or 'json' for machine-readable structured data. | markdown |