Skip to main content

User Prompt

“How many duplex receptacles are on E-201?”

Tool Call Sequence

1

Query features by type and sheet

Call: Query
{
  "entity": "feature",
  "project_id": "proj_oak",
  "sheet_number": "E-201",
  "type": "duplex_receptacle"
}
Response:
{
  "count": 17,
  "items": [
    {
      "id": "ftr_rec_01",
      "type": "duplex_receptacle",
      "label": null,
      "confidence": 0.94,
      "uri": "storage://features/ftr_rec_01/crop.png",
      "metadata": {},
      "block": { "id": "blk_e201_plan", "type": "Plan", "identifier": "1", "sheet_number": "E-201" },
      "parent": { "id": "ftr_rm201", "type": "room", "label": "201" },
      "relations": []
    },
    {
      "id": "ftr_rec_02",
      "type": "duplex_receptacle",
      "label": null,
      "confidence": 0.92,
      "uri": "storage://features/ftr_rec_02/crop.png",
      "metadata": {},
      "block": { "id": "blk_e201_plan", "type": "Plan", "identifier": "1", "sheet_number": "E-201" },
      "parent": { "id": "ftr_rm201", "type": "room", "label": "201" },
      "relations": []
    },
    {
      "id": "ftr_rec_03",
      "type": "duplex_receptacle",
      "label": null,
      "confidence": 0.91,
      "uri": "storage://features/ftr_rec_03/crop.png",
      "metadata": {},
      "block": { "id": "blk_e201_plan", "type": "Plan", "identifier": "1", "sheet_number": "E-201" },
      "parent": { "id": "ftr_rm202", "type": "room", "label": "202" },
      "relations": []
    }
  ]
}
What the agent learns: There are 17 duplex receptacles total. Each has a parent field showing which room it belongs to. The agent groups by parent.label to produce a room-by-room breakdown.

Agent Response

There are 17 duplex receptacles on sheet E-201. Here is the breakdown by room:
RoomCount
2014
2023
2032
2042
2052
2062
Corridor2

Summary

MetricValue
Tool calls1
Tools usedQuery
Key techniquePass-through sheet_number filter avoids needing to resolve the sheet ID first. Parent context enables room-level grouping without extra queries.