Skip to main content
Glama
flinker-app

ifc-mcp

by flinker-app

run Python

run-python

Run custom Python code to inspect, validate, report on, and export IFC/BIM files, or create new ones.

Instructions

Execute LLM-created Python in the SDK Node/Pyodide IFC runtime. Use this tool for IFC inspection, validation, reports, exports, and creating new IFC files.

Runtime context: Pyodide uses the bundled Pyodide 0.28.2 runtime. The package set includes micropip, ifcopenshell, numpy, pandas, matplotlib, shapely, and typing-extensions. The Python code is passed directly to the SDK.

File inputs: pass IFC/IFCXML/IFCZIP file paths in the files array. In the desktop Node server these are local filesystem paths; in a browser host they are browser-defined paths resolved by that host. Generated Python can open those files by name, e.g. ifcopenshell.open("model.ifc") or open("model.ifc", "rb").

Return contract: this tool exposes stdout, stderr, saved_files, uploaded_files, and any result returned by the raw SDK. Generated files are returned as temporary localhost download URLs in saved_files. Do not assume files were written to the user's working directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesRaw Python code to execute through the SDK. Files passed through files can be opened by name, e.g. ifcopenshell.open("model.ifc") or open("model.ifc", "rb").
filesNoOptional array of IFC/IFCXML/IFCZIP file paths. Desktop hosts use local filesystem paths; browser hosts use browser-defined paths.
timeout_secondsNoTimeout in seconds.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It discloses the Pyodide version (0.28.2), the available package set, file path behavior differences in desktop vs browser hosts, and the return contract including stdout, stderr, saved_files, uploaded_files, and the fact that generated files are temporary URLs rather than written to the user's directory. This is highly transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is organized into four short paragraphs, each earning its place: purpose, runtime context, file inputs, and return contract. It is concise yet comprehensive, with no redundant or vague sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex code execution tool with no output schema, the description adequately covers runtime details, package availability, file path resolution in different hosts, and the exact return structure including URL handling. It provides enough context for an agent to invoke the tool correctly and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All three parameters (code, files, timeout_seconds) are fully described in the schema, giving 100% coverage. The description adds general runtime context but does not add meaning beyond what the schema already states for each parameter. The baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Execute' with a clear resource: 'LLM-created Python in the SDK Node/Pyodide IFC runtime.' It lists concrete use cases (IFC inspection, validation, reports, exports, creating IFC files) and differentiates from sibling viewer tools by emphasizing code execution rather than visualization.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states 'Use this tool for IFC inspection, validation, reports, exports, and creating new IFC files,' providing clear context for when to invoke it. It does not explicitly exclude alternatives or name viewer tools as alternatives, but the sibling names make the distinction obvious. This earns a 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/flinker-app/ifc-mcp'

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