Skip to main content
Glama

Topic blocks

get_topic_blocks
Read-only

Returns one course topic's blocks with titles, PUIDs, paths, levels, and file IDs for pinning or assigning lessons; identify the topic by index or partial title.

Instructions

Returns the blocks of one topic of a course, each with title, PUID, block path and its levels (title, PUID, type, and fileId where known): everything pin_block needs, and the fileId that get_lesson and assign_lesson take. Identify the topic by topicIndex from list_topics or by part of its title. Much smaller than get_plan.

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": {
      "project": "<project>"
    },
    "name": "get_topic_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesCourse project ID, e.g. "c-mat-4"
topicIndexNo0-based topic index from list_topics
topicTitleNoPartial topic title match (case-insensitive) — alternative to topicIndex

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real context beyond that: the exact fields returned, which downstream tools consume them (pin_block, get_lesson, assign_lesson), and a relative cost signal ("Much smaller than get_plan"). No return ordering or pagination details, but the behavioral picture is well covered for a read-only lookup.

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?

The core purpose is front-loaded in the first clause, and the trailing fragments about downstream consumers and size are both load-bearing. The parenthetical field list is dense but earns its place given there is no output schema.

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 description carries the burden of describing returns and does so explicitly, including the fileId that other tools need. Topic identification, required project scope, and consumption path are all present, leaving nothing an agent needs missing.

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 schema already documents project, topicIndex and topicTitle, including that title is an alternative to index. The description restates both identification routes but adds little syntax or format meaning beyond the structured fields, so the baseline of 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?

States a specific verb and resource ("Returns the blocks of one topic of a course") and then enumerates the payload (title, PUID, block path, levels with type/fileId). It also differentiates itself from a sibling by noting it is "Much smaller than get_plan", so an agent can choose between them without opening either 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?

Gives concrete selection guidance for the two identification routes ("topicIndex from list_topics" or "part of its title") and implies the preferred scope via the comparison to get_plan. It does not explicitly state a when-not-to-use condition, but the routing is clear enough to act on.

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