Skip to main content
Glama

One building and its units: form, unit mix, EPC mix, HMO count

get_building
Read-onlyIdempotent
One building and its units: storeys, height, footprint, use, unit mix (residential and
commercial counts), EPC mix and HMO count, as named groups, then a page of its units
(address text, type, bedrooms, floor area, EPC rating, HMO flag, identity). Give exactly ONE
of `building_id` (a UUID) or `uprn`. Use it for "what is this building" and "what is in it".

Do NOT use it to value, estimate or appraise the building. It carries no owner or person
data: use `ownership` for who owns it, and `area_profile` for area totals. Free text is
refused (call resolve_place first). A UPRN with more than 20 adverts is a block, not one
home: read `identity` on each unit. A group the property service does not hold is
covered=false with the reason, never guessed.

Cost: 15 credits (the /buildings/physical price) for the building record, charged only when it
is returned, on the first page; following `next_cursor` for more units is free. covered=false
or an upstream failure is not charged.

Limits: 25 units per page, at most 50 (`limit`); more pages via `next_cursor`; result cut to
8 KB; UK only.

Free. Keyed on a UPRN, not an address: call `address_autocomplete` (free) to narrow, then `address_resolve` to get one.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_building"
  }
}

Input Schema

NameRequiredDescriptionDefault
uprnNo
limitNo
cursorNo
building_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only cover the read-only/idempotent safety profile, and the description goes well beyond them: 15-credit price, charged only when the record is returned on the first page, free pagination, free on covered=false or upstream failure, 25/50 unit page cap, 8 KB truncation, UK-only scope, and covered=false-with-reason instead of guessing. The only blemish is the trailing 'Free.' sentence, which reads as a contradiction of the stated 15-credit cost unless the reader infers it applies to the address tools.

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?

Front-loaded with purpose, then exclusions, then labeled Cost and Limits blocks that are easy to scan; nearly every sentence carries operational content. The closing 'Free. Keyed on a UPRN, not an address...' line is awkwardly placed after a paid-cost paragraph and creates momentary confusion that a one-word edit would fix.

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

Completeness5/5

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

For a 4-parameter read tool with an output schema, the description supplies everything an agent needs to call it correctly: identifier contract, cost and charging trigger, pagination, result-size cut, geography, and the covered=false semantics. The output schema carries the return shape, so nothing essential is missing.

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?

With 0% schema description coverage the description must carry the parameters, and it does the critical work the schema omits: 'exactly ONE of `building_id` (a UUID) or `uprn`', `limit` capped at 50 with a default page of 25, and `cursor` driving pagination. It does not explain the interaction if both or neither identifier is supplied, nor the types, so it stops short of full compensation.

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 names the resource ('one building and its units') and enumerates exactly what is returned: storeys, height, footprint, use, unit mix, EPC mix, HMO count, plus a page of unit fields. It also explicitly separates itself from siblings, telling the agent this is the 'what is this building / what is in it' tool and not a valuation tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives positive triggers ('what is this building', 'what is in it'), explicit exclusions ('Do NOT use it to value, estimate or appraise'), and named alternatives with the condition that selects them (`ownership` for owner, `area_profile` for area totals, `resolve_place` before free text). The address workflow (autocomplete -> resolve -> uprn) is spelled out end to end.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources