Skip to main content
Glama

get_schema

Read-only

Discover available schema kinds by retrieving the catalog of all kinds, or get detailed attributes and filter keys for a specific kind. Call this first when you don't know what kinds or filters exist.

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

TableJSON Schema
NameRequiredDescriptionDefault
kindNoKind to get detail for. Omit to list all available kinds.
branchNoBranch to query. Defaults to the default branch.
expandNoInline one level of each relationship's peer schema. Defaults to the server's INFRAHUB_MCP_SCHEMA_EXPAND_PEERS setting when omitted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Description provides detailed behavior: without kind returns catalog, with kind returns attributes/relationships/filter keys, expand controls inline peering. Aligns with readOnlyHint annotation and adds context beyond it, such as TOON-encoding and server defaults.

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?

Three paragraphs: purpose, behavior with/without kind, and alternative. Each sentence adds information; no fluff. Could be slightly more compact but well structured.

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?

Given the presence of an output schema, the description sufficiently covers return types and edge cases (default branch, server expand setting). No gaps remain for a discovery tool.

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?

Although schema coverage is 100%, the description adds value by explaining the effect of each parameter (e.g., kind changes the output, expand inlines peer schema) and mentions TOON-encoding for efficiency.

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 clearly states 'Discover available schema kinds' and instructs to call it first when kinds or filters are unknown. It distinguishes itself from sibling tools like get_nodes by focusing on schema metadata.

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

Usage Guidelines4/5

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

It explicitly says when to use ('call this first when you don't know what kinds or filters exist') and suggests an alternative resource (infrahub://schema) for clients that support MCP resources. Lacks explicit when-not-to-use but context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/opsmill/infrahub-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server