Skip to main content
Glama

Polyglot Publishing

Read an excerpt

get_excerpt
Read-onlyIdempotent

A real excerpt of a bilingual edition, as text: each segment in the language being learned, with its translation in the reader's language. Use it to show the user what the book and the line-by-line method look like before buying. Only some titles have an excerpt; the answer says so when one is missing.

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>",
      "reader_language": "<reader_language>"
    },
    "name": "get_excerpt"
  }
}

Input Schema

NameRequiredDescriptionDefault
book_uidYesIdentifier returned by search_books.
max_segmentsNoHow many aligned segments to return. Defaults to 40.
reader_languageYesThe language the reader already KNOWS (the translation side).
learning_languageYesThe language the reader is LEARNING (the original side of the excerpt).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered. The description adds genuinely useful context beyond that: the result is a real excerpt rather than a sample blob, and absence is reported rather than silently empty. It says nothing about size limits on the response, pagination, or whether missing excerpts correlate with certain editions.

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?

Three short sentences, front-loaded with what the tool returns before moving to usage and the missing-excerpt caveat. Every sentence carries information; only the phrase 'with its translation in the reader's language' is slightly padded relative to what the schema already states.

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?

There is no output schema, so the description carries the burden of describing the return value, and it does: an ordered set of aligned segments with two language sides. Combined with the missing-excerpt behavior, an agent has enough to call this correctly and interpret an empty answer. Segment count defaults and limits are left to the schema, which is appropriate.

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 description coverage is 100%, so book_uid, max_segments and both language enums are already documented. The description's explanation that one side is the learning language and the other the reader's language restates what the schema already labels, adding no new syntax or constraints. Baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('get a real excerpt... as text') and defines the shape of the result: aligned segments in the learning language paired with translations in the reader's language. It implicitly separates itself from search_books (discovery) by framing the call as a pre-purchase preview, though it never names a sibling explicitly.

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?

Gives a clear use case: show the user what the book and the line-by-line method look like before buying. It also sets expectations for the failure case (only some titles have excerpts; the answer says so when one is missing). It stops short of naming alternatives for full-book lookup or for users who already own the title.

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