Skip to main content
Glama
Im-Hal-9K

Capacities-MCP-Plus

capacities_get_space_info

Retrieve detailed information about a specific Capacities space, including its structures and collections, by providing the space's UUID identifier.

Instructions

Get detailed information about a specific Capacities space including structures and collections

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spaceIdYesThe UUID of the space to get information for

Implementation Reference

  • The async execute function that handles the tool logic: makes an API request to `/space-info?spaceid=${spaceId}`, parses JSON, and returns formatted string or throws error.
    execute: async (args: { spaceId: string }) => {
    	try {
    		const response = await makeApiRequest(
    			`/space-info?spaceid=${args.spaceId}`,
    		);
    		const data = await response.json();
    		return JSON.stringify(data, null, 2);
    	} catch (error) {
    		throw new Error(
    			`Failed to get space info: ${error instanceof Error ? error.message : String(error)}`,
    		);
    	}
  • Zod schema defining the input parameter 'spaceId' as a UUID string.
    parameters: z.object({
    	spaceId: z
    		.string()
    		.uuid()
    		.describe("The UUID of the space to get information for"),
    }),
  • src/server.ts:27-27 (registration)
    Registers the getSpaceInfoTool with the MCP server.
    server.addTool(getSpaceInfoTool);
  • src/tools/index.ts:2-2 (registration)
    Re-exports the tool for convenient import in server.ts.
    export { getSpaceInfoTool } from "./getSpaceInfo.js";

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