Skip to main content
Glama

get_categories

Retrieve all category information from a Revit model to access and organize building element classifications for analysis and documentation.

Instructions

获取 Revit 模型中的所有类别

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:117-123 (registration)
    Registration of the 'get_categories' tool in the ListToolsRequestSchema handler, including its schema (empty input).
    name: "get_categories", description: "获取 Revit 模型中的所有类别", inputSchema: { type: "object", properties: {} } }, {
  • Input schema for get_categories tool: empty object.
    inputSchema: { type: "object", properties: {} }
  • Primary handler for 'get_categories' tool: calls socket client and handles errors.
    async getCategories(): Promise<any[]> { try { return await this.client.getCategories(); } catch (error) { console.error('[RevitService] 获取类别失败:', error); throw error; } }
  • Helper function that sends the actual 'get_categories' command to the Revit socket server.
    public async getCategories(): Promise<any[]> { const response = await this.sendRequest<any[]>('get_categories', {}); return response; }

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