One shape for every response
Every Cotality MCP tool and REST endpoint returns the same top-level envelope. Parse these four fields on every call, before reading tool-specific payload.Fields
Rules for consumers
1
Gate on success
If
success is false, do not read data. Route to error handling.2
Respect count
Iterate exactly
count items from data. Do not assume a single result — parcels, properties, and geographies can return multiple records.3
Read messages on every call
messages carries freshness notes, partial-match warnings, and deprecation notices. An empty array is normal. A non-empty array always contains something the user or agent should know about.Error envelope
Whensuccess is false, the error detail is in messages: