Skip to main content
Glama

getAllSpaces

Retrieve all spaces or filter by IDs, categories, service IDs, or update date range within the Mews MCP server for efficient space management and data access.

Instructions

Returns all spaces of the enterprise, or only those specified

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ServiceIdsNoFilter by service IDs
SpaceCategoryIdsNoFilter by space category IDs
SpaceIdsNoFilter by specific space IDs
UpdatedUtcNoDate range filter for space updates

Implementation Reference

  • The main handler function for the getAllSpaces tool. It constructs request data from input args and calls the Mews API endpoint '/api/connector/v1/spaces/getAll' to retrieve spaces, then formats and returns the result.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const inputArgs = args as Record<string, unknown>; const requestData = { ...inputArgs }; const result = await mewsRequest(config, '/api/connector/v1/spaces/getAll', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining the parameters for the getAllSpaces tool, including optional filters for SpaceIds, ServiceIds, SpaceCategoryIds, and UpdatedUtc range.
    inputSchema: { type: 'object', properties: { SpaceIds: { type: 'array', items: { type: 'string' }, description: 'Filter by specific space IDs', maxItems: 1000 }, ServiceIds: { type: 'array', items: { type: 'string' }, description: 'Filter by service IDs', maxItems: 1000 }, SpaceCategoryIds: { type: 'array', items: { type: 'string' }, description: 'Filter by space category IDs', maxItems: 1000 }, UpdatedUtc: { type: 'object', properties: { StartUtc: { type: 'string', description: 'Start of update date range (ISO 8601)' }, EndUtc: { type: 'string', description: 'End of update date range (ISO 8601)' } }, description: 'Date range filter for space updates' } }, additionalProperties: false },
  • Import statement bringing the getAllSpacesTool into the main tools index.
    import { getAllSpacesTool } from './services/getAllSpaces.js';
  • Registration of getAllSpacesTool in the allTools array, making it available for export and execution.
    // Services tools getAllServicesTool, getAllSpacesTool, getAllSpaceCategoriesTool,

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/code-rabi/mews-mcp'

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