Skip to main content
Glama

Polyglot Publishing

List the buyable editions

list_editions
Read-onlyIdempotent

The editions of one book that can actually be produced for a given language pair, with their euro prices and their item_id. Call this before create_checkout_link: it is what rules out the combinations that do not exist — a trilingual edition needs three different languages (it reads in triple column and paragraph by paragraph in every script, line by line only in Latin, Cyrillic or Greek), and a paperback is limited by printable thickness. A monolingual edition contains only the learning_language text, with no translation (see text_languages).

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": {
      "book_uid": "<book_uid>",
      "learning_language": "<learning_language>",
      "known_language": "<known_language>"
    },
    "name": "list_editions"
  }
}

Input Schema

NameRequiredDescriptionDefault
book_uidYesIdentifier returned by search_books.
languageNoLanguage the title and author are returned in. Defaults to English. The product_url opens in this language when given, otherwise in the reader's (known_language).
buyer_countryNoThe buyer's country as an ISO 3166-1 alpha-2 code, e.g. US, GB, JP. Pass it when known: ebook and paperback prices then include that country's tax and any current discount. Pass the same buyer_country to both calls. In India the paperback price includes delivery.
known_languageYesCode of the language the reader ALREADY knows — the language of the translation. Must differ from learning_language.
third_languageNoOptional third language, to see whether a trilingual edition exists.
learning_languageYesCode of the language the reader wants to LEARN — the main text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / buyer_country / description
      Previous value: -"The buyer's country as an ISO 3166-1 alpha-2 code, e.g. US, GB, JP. Pass it when known: ebook prices then include that country's tax and any current discount."New value: +"The buyer's country as an ISO 3166-1 alpha-2 code, e.g. US, GB, JP. Pass it when known: ebook and paperback prices then include that country's tax and any current discount. Pass the same buyer_country to both calls. In India the paperback price includes delivery."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile needs no restatement. The description adds genuine domain behavior: which language combinations are physically producible, that monolingual editions contain only the learning_language text with no translation, and that results are the buyable subset rather than all editions. It stops short of saying what an empty list signifies or whether results are ordered, which keeps it from a 5.

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

Conciseness4/5

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

Front-loaded with what is returned, then the workflow rule, then the availability constraints — a sensible order. The parenthetical about triple-column and script-specific line-by-line layout is dense and only indirectly relevant to availability, costing a point on economy.

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

Completeness4/5

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

For a six-parameter read-only lookup with no output schema, the description carries enough: it names the returned fields (editions, euro prices, item_id) and the constraints governing existence. The main remaining gap is what an empty result means and whether prices depend on buyer_country being supplied.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains that a trilingual edition requires three distinct languages (constraining third_language) and that a monolingual edition has no translation, clarifying the learning_language/known_language pairing. It does not explain the layout constraint's effect on which scripts are supported beyond the parenthetical, leaving some ambiguity.

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?

States the exact resource (the editions of one book that can actually be produced for a given language pair) and what each entry carries (euro prices, item_id). It is clearly distinguishable from siblings like get_book or search_books, which retrieve titles or catalog entries rather than purchasable edition variants.

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

Usage Guidelines5/5

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

Explicitly positions the call in the workflow: 'Call this before create_checkout_link', and explains why — it rules out combinations that do not exist. It also names the concrete conditions under which a combination is ruled out (trilingual needs three different languages, paperback limited by printable thickness), so the agent knows what a short or empty result means.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources