Analyze Poem Rhythm (Metre)
ganjoor_analyze_poem_rhythmDetect a Persian poem's prosodic metre by numeric ID, returning the matched rhythm with confidence scores and alternative candidates for verification.
Instructions
Detect the prosodic metre (وزن) of a poem by its numeric id.
Runs Ganjoor's prosody engine over the poem's verses and returns the matched metre together with its confidence and the competing alternatives considered.
Args:
poem_id (number): Numeric poem id
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON: { poem_id, metre: { id, rhythm }, confidence, alternatives: [{ id, rhythm, score }] }
Examples:
"What metre is poem 2623 in?" -> poem_id=2623
Notes:
The detected metre may differ from the poem's stored metre for edited or composite texts.
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_rhythm"
}
}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 |