Search poems by words
gj_searchSearch classical Persian poems by exact words to retrieve matching couplets, with optional filters by poet or book and paginated results.
Instructions
Full-text search of poems by the words they contain, with the matching couplet.
All words must appear in the poem. Use gj_semantic_search to search by meaning instead.
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": {
"query": "<query>"
},
"name": "gj_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, 10 results per page. | |
| query | Yes | Persian words as written in the poem, e.g. 'دل من'. | |
| cat_id | No | Only this book or section (cat_id). | |
| poet_id | No | Only this poet (id from gj_poets). |