Skip to main content

User Prompt

“What are the specs for door 104?”

Tool Call Sequence

1

Find the door feature

Call: Query
{
  "entity": "feature",
  "project_id": "proj_oak",
  "type": "door",
  "label": "104"
}
Response:
{
  "count": 1,
  "items": [
    {
      "id": "ftr_d104",
      "type": "door",
      "label": "104",
      "bounds": { "type": "bbox", "xmin": 310, "ymin": 550, "xmax": 330, "ymax": 580 },
      "confidence": 0.96,
      "uri": "storage://features/ftr_d104/crop.png",
      "metadata": { "swing": "left", "width": "3'-0\"" },
      "block": { "id": "blk_a101_plan", "type": "Plan", "identifier": "1", "sheet_number": "A-101" },
      "parent": { "id": "ftr_rm102", "type": "room", "label": "102" },
      "relations": [
        {
          "relation_type": "scheduled_in",
          "target": {
            "entity_type": "block",
            "id": "blk_door_sched",
            "type": "Schedule",
            "label": "DOOR SCHEDULE",
            "sheet_number": "A-501"
          },
          "metadata": { "row_key": "104" }
        },
        {
          "relation_type": "defined_by",
          "target": {
            "entity_type": "feature",
            "id": "ftr_leg_d1",
            "type": "legend_entry",
            "label": "Single Door",
            "sheet_number": "A-101"
          },
          "metadata": null
        }
      ]
    }
  ]
}
What the agent learns: Door 104 is in Room 102 on sheet A-101. It has a scheduled_in relation pointing to the door schedule block (blk_door_sched) with row_key: "104". The agent knows exactly which block to query and which row to extract.
2

Fetch the schedule metadata

Call: Query
{
  "entity": "block",
  "project_id": "proj_oak",
  "id": "blk_door_sched",
  "include": ["metadata"]
}
Response:
{
  "count": 1,
  "items": [
    {
      "id": "blk_door_sched",
      "type": "Schedule",
      "identifier": null,
      "name": "DOOR SCHEDULE",
      "uri": "storage://blocks/blk_door_sched/image.png",
      "confidence": 0.97,
      "sheet": { "id": "sh_a501", "sheet_number": "A-501", "discipline": "A" },
      "drawing": { "id": "dr_arch_b", "name": "Arch Set Rev B" },
      "relations": [],
      "metadata": {
        "rows": {
          "104": {
            "size": "3070",
            "material": "HM",
            "fire_rating": "45-min",
            "hardware_set": "HW-3"
          }
        }
      }
    }
  ]
}
What the agent learns: Row 104 in the door schedule contains the full specs: size 3070, hollow metal, 45-minute fire rating, hardware set HW-3.

Agent Response

Door 104 is located in Room 102 on sheet A-101. Here are the specs from the Door Schedule on A-501:
PropertyValue
Size3’-0” x 7’-0” (3070)
MaterialHollow Metal (HM)
Fire Rating45 minutes
Hardware SetHW-3
SwingLeft
SymbolSingle Door

Summary

MetricValue
Tool calls2
Tools usedQuery (feature) then Query (block)
Key techniqueThe scheduled_in relation on the feature includes row_key, so the agent knows exactly which schedule row to read. No searching or guessing required.