capacities_list_spaces
Retrieve all personal spaces in Capacities knowledge management to organize and access your information.
Instructions
Get a list of all personal spaces in Capacities
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/listSpaces.ts:11-21 (handler)The execute function that handles the tool logic: makes an API request to /spaces, parses JSON, and returns formatted string.execute: async () => { try { const response = await makeApiRequest("/spaces"); const data = await response.json(); return JSON.stringify(data, null, 2); } catch (error) { throw new Error( `Failed to list spaces: ${error instanceof Error ? error.message : String(error)}`, ); } },
- src/tools/listSpaces.ts:22-24 (schema)Tool name and parameters schema (empty object, no input parameters required). Also includes annotations and description above.name: "capacities_list_spaces", parameters: z.object({}), };
- src/server.ts:26-26 (registration)Registers the listSpacesTool with the FastMCP server.server.addTool(listSpacesTool);