Get Schema
get_schemaDiscover Infrahub schema kinds, attributes, relationships, and filter keys before querying nodes. Omit kind to list all kinds or specify one for details.
Instructions
Discover available schema kinds — call this first when you don't know what kinds or filters exist.
Without a kind, returns the catalog of all kinds (compact JSON).
With a kind, returns its attributes, relationships, and the full set
of filter keys accepted by get_nodes (TOON-encoded for token efficiency).
Each relationship inlines one level of its peer schema unless expand is
False (or the server default disables it).
Prefer reading the infrahub://schema resource if your client supports
MCP resources — this tool provides the same data for clients that don't.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Kind to get detail for. Omit to list all available kinds. | |
| branch | No | Branch to query. Defaults to the default branch. | |
| expand | No | Inline one level of each relationship's peer schema. Defaults to the server's INFRAHUB_MCP_SCHEMA_EXPAND_PEERS setting when omitted. |