Skip to main content
Glama
Im-Hal-9K

Capacities-MCP-Plus

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)}`,
    		);
    	}
    },
  • 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);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Im-Hal-9K/Capacities-MCP-Plus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server