Skip to main content
Glama
listSpaces.ts637 B
import { z } from "zod"; import { makeApiRequest } from "../api.js"; export const listSpacesTool = { annotations: { openWorldHint: true, readOnlyHint: true, title: "List Capacities Spaces", }, description: "Get a list of all personal spaces in Capacities", 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)}`, ); } }, name: "capacities_list_spaces", parameters: z.object({}), };

Implementation Reference

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