Skip to main content
Glama

List project blocks

list_blocks
Read-only

List the top-level blocks (root children) in a project, as structured JSON (id, text, completed). Get the projectId from list_projects. Supports after/before cursors (block ids).

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": {
      "projectId": "<projectId>"
    },
    "name": "list_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoCursor: return blocks after this block id (not with before)
limitNoMax blocks to return (default 100)
beforeNoCursor: return blocks before this block id (not with after)
projectIdYesProject ID from `list_projects`

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds behavior beyond that: results are top-level only, returned as structured JSON with named fields, and paginated via block-id cursors. Minor gaps remain (ordering of results, what an empty project returns).

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?

Three short sentences, front-loaded with the operation and scope, then the return shape, then the prerequisite and pagination. Every sentence carries distinct information with no filler.

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?

With no output schema, the description compensates by naming the returned fields (id, text, completed) and clarifying top-level-only semantics. For a four-parameter read tool this is nearly complete, though result ordering and behavior on empty results are left unstated.

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 projectId, limit, after, and before are all documented in the schema, including the after/before mutual exclusion and the default of 100. The description restates the cursor semantics and the projectId source but adds no format or edge-case detail beyond the schema, making the baseline 3 appropriate.

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?

The description states a specific verb and resource ('List the top-level blocks') and narrows scope explicitly with '(root children)', which tells an agent this does not recurse into nested blocks. It stops short of naming a sibling alternative for non-block project content, but the operation itself is unambiguous.

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 prerequisite for the required parameter ('Get the projectId from `list_projects`'), which is the key routing information an agent needs before calling. It gives no when-not guidance or exclusions relative to other list tools, so it falls short of a 5.

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.