capacities_list_spaces
Retrieve a list of personal spaces within Capacities knowledge management system to organize and access information efficiently.
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 performs the API request to /spaces endpoint, parses the JSON response, and returns it as a formatted string. Handles errors by throwing a descriptive error.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:23-23 (schema)Zod schema defining the tool parameters as an empty object, indicating the tool takes no input arguments.parameters: z.object({}),
- src/server.ts:24-24 (registration)The line where the listSpacesTool is registered with the FastMCP server.server.addTool(listSpacesTool);