Skip to main content

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

When success is false, the error detail is in messages:
See Error handling for the full list of codes and agent actions.

Example — property characteristics (abridged)

For AI agents: after every tool call, check messages before summarising results. Non-empty messages often explain why a result is partial, estimated, or about to change.