Skip to main content
Glama

get_categories

Retrieve all categories from a Revit model to streamline data organization and enhance model analysis within the Revit MCP Server environment.

Instructions

获取 Revit 模型中的所有类别

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:116-123 (registration)
    Registration of the 'get_categories' tool in the MCP server's ListToolsRequestSchema handler, including name, description, and empty input schema.
    tools: [{ name: "get_categories", description: "获取 Revit 模型中的所有类别", inputSchema: { type: "object", properties: {} } }, {
  • Input schema for the 'get_categories' tool: an empty object.
    inputSchema: { type: "object", properties: {} }
  • RevitService.getCategories(): the direct handler called by MCP tool dispatcher for 'get_categories', delegates to socket client.
    async getCategories(): Promise<any[]> { try { return await this.client.getCategories(); } catch (error) { console.error('[RevitService] 获取类别失败:', error); throw error; } }
  • Core handler implementation in RevitSocketClient.getCategories(): sends 'get_categories' command over socket and returns response.
    public async getCategories(): Promise<any[]> { const response = await this.sendRequest<any[]>('get_categories', {}); return response; }

Other Tools

Related Tools

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/PiggyAndrew/revit_mcp'

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