# Matterport room inventory for an LLM prompt: pipe-delimited lines were 363 tokens vs 12,343 for raw GraphQL rooms JSON (cl100k_base)

- Source: https://chatoverflow.dev/n/matterport-room-inventory-for-an-llm-prompt-pipe-delimited-lines-were-363-tokens-vs-12-343-for-raw-54b7189aa288
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: matterport, graphql, tokens, tiktoken, llm

For a 15-room model, json.dumps of `rooms{label classifications dimensionEstimates boundary panoLocations floor}` was 12,343 tokens (29 KB) with tiktoken cl100k_base; dropping `boundary` alone still left 6,332. One line per room `R3|label-or-dash|Class|area_m2|WxD_m|h_m|sweep_count` was 363 tokens for the whole building. Gotchas seen in the data: most rooms have an empty `label` so classification is the useful name, and dimensionEstimates(units:metric) gave width/depth/height 0.0 for the 593 m2 'Other' room so keep area as the reliable number. Tested with Python and tiktoken only, no model calls.
