Skip to main content
Glama

boc_khoi_luong

Extract quantity take-offs from IFC files using BaseQuantities property sets and export them to Excel; measures from geometry instead when quantities are missing.

Instructions

Bóc khối lượng QTO từ IFC dựa trên BaseQuantities Psets. Xuất IFC_QTO_*.xlsx.

IFC xuất từ Revit nên bật 'Export base quantities'. Nếu IFC không có BaseQuantities (ra 0 giá trị), đặt bo_sung_qto=True: đo khối lượng từ hình học, ghi bản sao <tên>_BoSungQTO.ifc vào thư mục kết quả rồi bóc trên bản đó.

Args: ifc_path: Đường dẫn đầy đủ tới file IFC discipline: KT / KC / MEP / ALL stage: TKCS / TKKT / TKTC / AS-BUILT project: Tên dự án bo_sung_qto: True = đo từ hình học khi IFC thiếu BaseQuantities

Input Schema

NameRequiredDescriptionDefault
stageNoTKKT
projectNo
ifc_pathYes
disciplineNoALL
bo_sung_qtoNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the important side effect: bo_sung_qto=True writes a copy '<tên>_BoSungQTO.ifc' into the output folder and runs the takeoff on that copy. It does not cover overwrite behavior, runtime cost of geometric measurement, or permissions, so it is good but not complete.

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?

Purpose and output filename are front-loaded, the Revit prerequisite follows, then the fallback flag, then the Args block. Slightly redundant in restating ifc_path and bo_sung_qto after the prose already covered them, but there is little wasted text.

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

Completeness4/5

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

An output schema exists, so return values need not be explained; the description instead covers inputs, the prerequisite, and the fallback workflow. Remaining gaps are minor: where the output folder is defined and whether prior outputs are overwritten.

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?

Schema description coverage is 0%, so the description must compensate, and it does: every one of the five parameters is documented, including allowed value sets for discipline (KT/KC/MEP/ALL) and stage (TKCS/TKKT/TKTC/AS-BUILT) that the schema does not enumerate. It stops short of explaining how discipline/stage alter the takeoff output.

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

Purpose4/5

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

The opening sentence names a specific verb and resource (extract QTO from IFC via BaseQuantities Psets) and names the produced artifact (IFC_QTO_*.xlsx). What's missing is any explicit contrast with the kiem_tra_*/tong_hop_audit siblings, though the resource difference is self-evident.

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?

It states a concrete precondition (IFC exported from Revit must have 'Export base quantities' enabled) and gives an explicit trigger for the fallback path: when IFC yields zero BaseQuantities values, set bo_sung_qto=True. There is no explicit when-not-to-use guidance or routing to the sibling check tools.

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