Skip to main content
Glama
shuji-bonji

@shuji-bonji/ifc-core-mcp

Get IFC Inheritance Tree

ifc_get_inheritance
Read-onlyIdempotent

Get the inheritance hierarchy of an IFC4.3 entity, showing its supertype chain or subtype tree. Choose depth, direction, and output format.

Instructions

Get the inheritance hierarchy of an IFC4.3 entity.

Shows ancestor chain (supertypes up to IfcRoot) and/or descendant tree (subtypes).

Args:

  • name (string): IFC entity name (e.g. "IfcRoot", "IfcProduct", "IfcWall")

  • direction ('descendants' | 'ancestors' | 'both'): Which direction to show (default: 'both')

  • depth (number): Max depth for descendant tree, 1-10 (default: 3)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: Inheritance hierarchy showing ancestors and/or descendants.

Examples:

  • "IfcRoot" with direction="descendants" → full class hierarchy tree

  • "IfcWall" with direction="ancestors" → IfcWall → IfcBuiltElement → ... → IfcRoot

  • "IfcProduct" with direction="both" → both ancestor chain and subtype tree

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesIFC entity name (e.g. 'IfcRoot', 'IfcProduct', 'IfcWall')
depthNoMaximum depth for descendant tree (default: 3)
directionNoDirection: 'descendants' (subtypes), 'ancestors' (supertypes), or 'both'both
response_formatNoOutput format: 'markdown' for human-readable or 'json' for structured datamarkdown
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description complements this by explaining the tool's behavior (showing hierarchies, depth limits) without contradicting annotations.

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

Conciseness4/5

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

The description is well-structured with clear sections (main purpose, Args, Returns, Examples). Every sentence serves a purpose, though it is slightly lengthy. The use of examples aids understanding without adding unnecessary fluff.

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

Completeness3/5

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

Given the tool's complexity (4 parameters, no output schema), the description provides decent coverage. However, the return format is vaguely described ('Inheritance hierarchy showing ancestors and/or descendants') and the examples only hint at the output structure. More explicit details about the output (e.g., format of markdown vs JSON) would improve completeness.

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

Parameters4/5

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

Input schema coverage is 100%, so baseline is 3. The description adds value by explaining parameter semantics through examples and clarifying default values and allowed ranges (e.g., depth 1-10, direction options). This goes beyond the schema's descriptions.

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 clearly states that the tool retrieves the inheritance hierarchy (ancestors and/or descendants) of an IFC entity. It uses a specific verb ('Get') and resource ('IFC Inheritance Tree'), and the examples distinguish it from sibling tools like ifc_get_entity, which retrieves a single entity.

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 provides clear context on when to use different parameters (direction, depth) and includes examples that illustrate typical use cases. However, it does not explicitly state when not to use this tool or mention alternatives among siblings, which would be helpful for an AI agent.

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/shuji-bonji/ifc-core-mcp'

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