Skip to main content
Glama

List Spaces And Folders

workspace.structure
Read-onlyIdempotent

List the spaces the user can see, each with its folders and the items inside them (sheets, pages, whiteboards, Vista pages, dashboards, standalone workflows). Call this FIRST when you need to create something and must decide where it goes: spaceId and folderId from here are what sheet.create, page.create, steps.apply and workflow.from_template take as their target. For an item, refId is the entity id to pass to other tools (e.g. a SHEET item's refId is the sheetId for sheet.schema; a WHITEBOARD item's refId is the whiteboardId and a VISTA item's the vistaId for item_tree.move and item_tree.duplicate; a WORKFLOW item's refId is its ref in workflow.list, which gives its workflowId). Use workspace.search instead when you know the name of the thing you want and just need its id.

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": "workspace.structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceIdNoReturn only this space. Omit for every space you can see.

Output Schema

NameRequiredDescriptionDefault
spacesYesSpaces the caller can see, each with its folders and items; an item's `refId` is the sheet/page/whiteboard/vista/dashboard id, or the workflow ref of a standalone workflow
truncatedYesTrue when spaces were dropped to fit the result cap; narrow with `spaceId`

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / spaces / description
      Previous value: -"Spaces the caller can see, each with its folders and items; an item's `refId` is the sheet/page/dashboard id, or the workflow ref of a standalone workflow"New value: +"Spaces the caller can see, each with its folders and items; an item's `refId` is the sheet/page/whiteboard/vista/dashboard id, or the workflow ref of a standalone workflow"
  2. Changed1 schema field changed
    • changedOutput schema / properties / spaces / description
      Previous value: -"Spaces the caller can see, each with its folders and items; an item's `refId` is the sheet/page/dashboard id"New value: +"Spaces the caller can see, each with its folders and items; an item's `refId` is the sheet/page/dashboard id, or the workflow ref of a standalone workflow"
  3. Changed6 schema fields changed
    • removedOutput schema / properties / spaces / items / properties / folders / items / properties / parentId / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / spaces / items / properties / folders / items / properties / parentId / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / spaces / items / properties / items / items / properties / folderId / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / spaces / items / properties / items / items / properties / folderId / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / spaces / items / properties / items / items / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / spaces / items / properties / items / items / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond that: results are permission-scoped to what the user can see, and the refId-to-entity-id mapping (SHEET→sheetId, WHITEBOARD→whiteboardId, VISTA→vistaId, WORKFLOW→workflow ref) is non-obvious cross-tool behavior. It stops short of discussing result size or pagination, though an output schema exists.

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?

Purpose and the 'call this first' directive are front-loaded in the first sentence, and the alternative routing closes the paragraph. The middle refId mapping is dense and somewhat verbose, but each mapping carries non-obvious cross-tool information rather than filler.

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-required-parameter discovery tool with a full annotation set and an output schema, this description supplies everything needed to call it correctly: when to reach for it, what it returns, and how to consume the returned ids in sibling tools. The verbose return-value explanation is a style cost, not a completeness gap.

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% and the single spaceId parameter already documents 'Return only this space. Omit for every space you can see.' The description adds no scoping or format detail for that parameter, so it neither helps nor hurts beyond the schema baseline.

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 ('List the spaces the user can see') and enumerates exactly what is returned: folders and the items inside them (sheets, pages, whiteboards, Vista pages, dashboards, standalone workflows). An agent can distinguish this from workspace.search 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 Guidelines5/5

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

Gives an explicit trigger ('Call this FIRST when you need to create something and must decide where it goes') and names the alternative with its selecting condition ('Use workspace.search instead when you know the name of the thing you want and just need its id'). Both when-to-use and when-not-to-use are covered.

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