Skip to main content
Glama

Get ClickUp Spaces

clickup_get_spaces
Read-onlyIdempotent

Retrieve all spaces in a ClickUp team/workspace to browse workspace structure; optionally include archived spaces and choose markdown or JSON output.

Instructions

Get all spaces in a team/workspace.

Spaces are the second level in the ClickUp hierarchy (Team → Space → Folder → List → Task). This tool retrieves all spaces within a specific team.

Args:

  • team_id (string): The team/workspace ID

  • archived (boolean): Include archived spaces (default: false)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "spaces": [ { "id": "string", "name": "string", "private": boolean, "multiple_assignees": boolean, "features": { ... } } ] }

Examples:

  • Use when: "Show me all spaces in team 123456"

  • Use when: "List the spaces in my workspace"

  • Don't use when: You need to list teams (use clickup_get_teams)

Error Handling:

  • Returns "Error: Resource not found" if team_id is invalid (404)

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": {
      "team_id": "<team_id>"
    },
    "name": "clickup_get_spaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
team_idYesTeam/workspace ID
archivedNoInclude archived spaces
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.6

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds real context beyond that: the archived-filter default, the response shape, and a concrete 404 error behavior for an invalid team_id. It stops short of mentioning pagination or rate limits, which keeps it below a 5.

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?

Well front-loaded: purpose, hierarchy, args, return shape, examples, errors in that order. The Args block is somewhat redundant with a fully documented schema, and the JSON return sample is verbose, but it 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?

For a three-parameter read tool with no output schema, the definition covers everything an agent needs: purpose, hierarchy placement, filtering semantics, output format, return structure, and a named error case. Nothing material is 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% and the Args section largely restates what the schema already documents, including the defaults for archived and response_format. The only marginal addition is phrasing that ties response_format to human- vs machine-readable output, which the schema also states. Baseline 3 is appropriate.

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 ("Get all spaces in a team/workspace") and situates it in the ClickUp hierarchy (Team → Space → Folder → List → Task). It also explicitly separates itself from clickup_get_teams, so an agent can pick the right tool without inspecting schemas.

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?

Provides concrete "Use when" examples ("Show me all spaces in team 123456", "List the spaces in my workspace") and an explicit "Don't use when" redirect to clickup_get_teams. Both the inclusion and exclusion conditions are stated.

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