Skip to main content
Glama

Get Topics

get_topics
Read-onlyIdempotent

List the top-level topics/themes of the thematic catalogue for filtering book searches (e.g. "Littérature", "Histoire", "Sciences"). Each topic's "id" field is the value expected by the topicId filter of search_books. Only the roots are listed; the counts are books a search finds. The topicId filter matches a topic ALONE, never its sub-topics, so filtering on a root returns its directBookCount (subtreeBookCount is the size of the whole theme). To reach the finer sub-topics (subTopicCount of them, not returned here), run search_books and read the values of its topicId facet, which are valid topicId filters too.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_topics"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
topicsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare this as a safe, read-only, idempotent, non-destructive, closed-world operation. Beyond that, the description adds non-obvious behavior: only roots are listed, directBookCount reflects books found when filtering on that root, subtreeBookCount is the whole theme size, and finer sub-topics are not returned here.

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

Conciseness5/5

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

The description is front-loaded with the core purpose and is dense with useful distinctions. Every sentence earns its place by clarifying root-only listing, count meanings, filter matching semantics, and how to reach sub-topics.

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?

For a zero-parameter discovery tool with an output schema, this description supplies everything an agent needs: what is returned, what the IDs are for, how counts differ, and where to find finer-grained topic IDs. It does not need to describe return values in detail because an output schema exists.

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?

The tool has zero input parameters, so the baseline is 4. The description still adds useful semantics by explaining that each topic's id field is the value expected by search_books' topicId filter, even though that is not a parameter of this tool itself.

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 uses a specific verb and resource: it lists the top-level topics/themes of the thematic catalogue for filtering book searches. It distinguishes this discovery tool from the sibling search_books by explaining that this returns roots and that finer sub-topics come from search_books' topicId facet.

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?

It explicitly states when to use this tool (to obtain root topic IDs for the topicId filter) and when to use an alternative (run search_books to reach sub-topics via its topicId facet). It also clarifies the crucial filtering behavior that topicId matches a topic alone, never its sub-topics.

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