Skip to main content
Glama

Read the schema

get_schema
Read-onlyIdempotent

Get this project's schema: the entities the control plane exposed and each entity's exposed fields, grouped by datasource, with the meaning recorded against them — descriptions, classification paths, purposes, semantic types, roles, and the entity and field an identifier refers to. A person who is not an administrator is answered only for datasources their Roles at rich or full list. An explicit datasource outside that reach is refused with datasource_not_granted. An entity is a table of rows or a document; a field is a column or a path inside a document. A datasource that statements are written against names its dialect and identifier quote. A datasource that has not finished setup carries its status. Use it to understand what the data is before choosing an approved request. It reads metadata only: no row, sample, enumerated value, or count from the data is ever returned, and nothing is executed.

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_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
entitiesNoOptional: describe only these entities, by qualified name ("public.orders") or bare name ("orders").
datasourceNoOptional datasource ID to describe only that datasource. A datasource that has not finished setup is refused with datasource_not_ready.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already declare read-only, idempotent, non-destructive, closed-world behavior, yet the description still adds substantial context beyond them: non-admin callers are filtered by Role level, out-of-reach datasources are refused with a named error, unfinished datasources return status instead of failing silently, and the result never includes rows, samples, enumerated values, or counts. It also discloses that dialect and identifier quote metadata are included, which the annotations say nothing about.

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?

The core definition is front-loaded in the first sentence, with access rules, term definitions, and the metadata-only guarantee following in a sensible order. It is on the long side, and a sentence like 'A datasource that statements are written against names its dialect and identifier quote' is awkwardly phrased, but no sentence is pure filler.

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?

With no output schema, the description carries the burden of explaining return content and does so thoroughly: entities and fields with meanings (descriptions, classification paths, purposes, semantic types, roles, identifier targets), datasource grouping, dialect/quote info, and setup status. For a two-optional-parameter read tool with full annotation coverage, an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both optional parameters (entities, datasource) are already fully documented in the schema, including the qualified-vs-bare name forms and the datasource_not_ready refusal. The description adds conceptual framing (grouping by datasource, what an entity and field represent) but no new syntax or format detail, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Get this project's schema') and immediately enumerates what the result contains: entities, exposed fields, datasource grouping, and recorded meaning. It even defines the vocabulary ('An entity is a table of rows or a document; a field is a column or a path inside a document'), leaving no ambiguity about scope. It does not name or distinguish itself from plausible siblings such as search_schema or get_column_metadata, so it stops short of a 5.

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?

'Use it to understand what the data is before choosing an approved request' gives a concrete decision context for reaching for this tool. Access boundaries are spelled out as refusals ('datasource_not_granted', 'datasource_not_ready'). However, there is no explicit when-not-to-use or pointer to an alternative tool for narrower lookups.

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