Skip to main content
Glama

Database schema

db_schema
Read-onlyIdempotent

Tables of the project's database with columns, types, defaults, indexes, foreign keys and checks, approximate rows and size, and its views; env preview (default) or production. Before reading or changing live data, read the LIVE schema (env production): the preview may already have a table or column the live site doesn't have yet.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>"
    },
    "name": "db_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNopreview
projectYesProject slug or id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is established. The description adds genuine behavioral context: the env default of preview and the drift risk that preview can be ahead of production. It does not discuss cost, latency, or behavior when the project slug is invalid, and the annotation bar is already low here.

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?

Two sentences, front-loaded with what is returned and followed by the operational caveat. The field enumeration is dense but each item earns its place because no output schema exists. Slightly long mid-sentence list keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 correctly enumerates the returned fields, and read-only annotations cover the safety question. The env drift caveat closes the main interpretive gap. Minor remaining unknown is behavior for an invalid project or a project with no database, which is not addressed.

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 coverage is 50%: `project` is documented in the schema, and `env` has visible enum values and a default. The description contributes meaning by stating the default is preview and explaining why production is the safe read target. That is useful but thin, and with the schema already carrying enums and defaults the baseline of 3 fits.

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 uses a specific resource (database schema of a project) and enumerates exactly what is reported: columns, types, defaults, indexes, foreign keys, checks, approximate rows and size, plus views. That makes it clearly distinguishable from a query or read tool. It does not name the sibling tools (db, db_query, db_read) it should be contrasted with, so the differentiation is implicit rather than explicit.

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 gives a real precondition: 'Before reading or changing live data, read the LIVE schema (env production)', with the reason spelled out — the preview may already contain a table or column the live site lacks. That is actionable when-to-use guidance tied to a specific parameter. It stops short of naming alternatives (e.g., when to use db_query instead), so it earns a 4 rather than a 5.

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