get_ifc_quantities
Extract and retrieve basic quantity takeoff data from IFC building models for project analysis and reporting.
Instructions
Extract and get basic qtos about the IFC project.
Returns:
A JSON-formatted string with project quantities information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools.py:614-629 (handler)The handler function for the 'get_ifc_quantities' MCP tool. It connects to the Blender addon via socket and sends a 'get_ifc_quantities' command, returning the JSON-formatted quantities data or error message.def get_ifc_quantities() -> str: """ Extract and get basic qtos about the IFC project. Returns: A JSON-formatted string with project quantities information """ try: blender = get_blender_connection() result = blender.send_command("get_ifc_quantities") # Return the formatted JSON of the results return json.dumps(result, indent=2) except Exception as e: logger.error(f"Error getting IFC project quantities: {str(e)}") return f"Error getting IFC project quantities: {str(e)}"
- tools.py:614-614 (registration)The @mcp.tool() decorator registers the 'get_ifc_quantities' function as an MCP tool.def get_ifc_quantities() -> str: