get_ifc_project_info
Retrieve basic IFC project details including name, description, and entity type counts from Blender building models.
Instructions
Get basic information about the IFC project, including name, description,
and counts of different entity types.
Returns:
A JSON-formatted string with project information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools.py:262-279 (handler)The main handler function for the 'get_ifc_project_info' MCP tool. It connects to the Blender addon via a persistent socket connection and sends the 'get_ifc_project_info' command, returning the JSON response or an error message.@mcp.tool() def get_ifc_project_info() -> str: """ Get basic information about the IFC project, including name, description, and counts of different entity types. Returns: A JSON-formatted string with project information """ try: blender = get_blender_connection() result = blender.send_command("get_ifc_project_info") # Return the formatted JSON of the results return json.dumps(result, indent=2) except Exception as e: logger.error(f"Error getting IFC project info: {str(e)}") return f"Error getting IFC project info: {str(e)}"