Skip to main content
Glama

List spaces

gitbook_list_spaces
Read-only

List all spaces in an organization. GitBook REST: GET /orgs/{organizationId}/spaces.

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page number.
limitNoResults per page.
organizationIdYesThe organization id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds the underlying REST endpoint (GET /orgs/{organizationId}/spaces), which is real but marginal context, and it omits pagination behavior — notably the word 'all' sits awkwardly against the page/limit parameters.

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?

Two brief sentences, purpose front-loaded, zero redundancy. Every clause carries information.

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 simple read-only list with full schema coverage and no output schema, the description is nearly sufficient. The remaining gap is pagination semantics — the description says 'all' without noting that results are paged, which an agent relying on page/limit should know.

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%, with page, limit and organizationId all documented in the schema, so the baseline is 3. The description adds nothing about parameter formats or defaults beyond what the schema already states.

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 ('List all spaces in an organization'), which is enough for an agent to separate it from gitbook_get_space and gitbook_list_collections. It does not explicitly name the sibling tools or clarify how it differs from gitbook_search_space, but the verb+resource pairing 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 Guidelines2/5

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

The description gives no when-to-use guidance and no alternatives: it never says to prefer gitbook_get_space for a single space or gitbook_search_space for filtered lookups. Usage must be inferred entirely from the tool name.

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.