Skip to main content
Glama
Ganjoor MCP Server

Ganjoor MCP Server

Official
by ganjoor

Get Poems Quoted By A Poem

ganjoor_get_poem_quoted_poems
Read-onlyIdempotent

Retrieve the poems a given poem quotes or alludes to, plus the poems that quote it, to map Persian poetry quotation links in both directions.

Instructions

Get the poems that a given poem quotes or alludes to, and the poems that quote it.

Matching in metre and rhyme is common in Persian poetry — poets answer each other by reusing the other's metre and rhyme. This endpoint maps those links in both directions.

Args:

  • poem_id (number): Numeric poem id

  • only_both_poems (boolean): Only keep pairs where both poems claim the quotation (default: false)

  • published_only (boolean): Only keep published records (default: true)

  • main_list_only (boolean): Only keep records curated onto the main "related poems" list (default: false)

  • skip (number): Results to skip (default: 0)

  • items_count (number): How many to return. 0 or negative returns all (default: 20)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON: { poem_id, total, returned, quotes: [{ id, related_poem_id, related_poet_name, related_poem_title, related_poem_url, is_prior, quoted_couplet, quoting_couplet, claimed_by_both, note }] }

Examples:

  • "Which poems does this one answer?" -> poem_id=

Notes:

  • Each record pairs the quoted couplet with the couplet in the other poem that quotes it, so the actual verbal borrowing is visible.

  • is_prior: true means this poem came first chronologically.

  • items_count=0 returns everything, which can be large.

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_quoted_poems"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNoResults to skip.
poem_idYesNumeric poem id.
items_countNoHow many results to return. 0 or less returns all.
main_list_onlyNoOnly include records curated onto the main related-poems list.
published_onlyNoOnly include published records.
only_both_poemsNoOnly include quotations both poems acknowledge.
response_formatNoOutput format: 'markdown' for human-readable text (default) or 'json' for machine-readable structured data.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the read-only, idempotent, non-destructive profile, and the description goes further by explaining that each record pairs the quoted couplet with the quoting couplet, what is_prior means chronologically, and that items_count=0 can return a large result set. That is useful operational context beyond the annotations, though it says nothing about permissions or performance limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening and Notes sections are front-loaded and earn their place, but the Args block duplicates a schema that already has 100% description coverage, consuming several lines without adding information. The structure is clean, yet roughly a third of the text is redundant against structured fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the explicit Returns shape (poem_id, total, returned, and the quotes array with its fields) is exactly what an agent needs to consume results. Combined with the bidirectional semantics and pagination warning, nothing material is missing for a seven-parameter read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the Args block largely restates documented parameters and defaults. The one genuine addition is explaining that only_both_poems filters to quotations both poems acknowledge, but the rest adds no meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — retrieving the poems a given poem quotes/alludes to plus the poems that quote it — and explicitly notes it maps links in both directions. This is precise enough to separate it from siblings like find_similar_poems or get_poem_verses without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It supplies the domain rationale (poets answering each other via shared metre and rhyme) and a concrete example question, 'Which poems does this one answer?', which tells an agent the intended use case. It stops short of naming an alternative tool or stating when not to use it, so it is clear context rather than full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.