Skip to main content
Glama

get_database_schema

Inspect database table schemas accessible from a notebook session to understand table structures before querying or analyzing data.

Instructions

Inspect database table schemas accessible from the notebook.

Args: session_id: The session ID from list_notebooks.

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": {
      "session_id": "<session_id>"
    },
    "name": "get_database_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden; 'Inspect' implies a read-only operation but this is never stated outright. It also doesn't explain what 'accessible from the notebook' means operationally (e.g., whether a live connection or credentials must exist, or what happens when none are configured). An output schema exists, so return-value description is not required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short, front-loaded statements with no filler: the capability first, then the parameter's origin. The 'Args:' docstring formatting is slightly raw but does not waste the reader's attention.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool with an output schema, the essentials are covered. What's missing is the operational meaning of 'accessible from the notebook' and any indication of failure modes when no database is connected, which matters because the tool's usefulness depends entirely on that accessibility.

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?

Schema coverage is 0% and the single parameter has no description in the schema, so the description must compensate — and it does by naming its provenance ('The session ID from list_notebooks'). That tells the agent where to obtain the value, which is meaningful information beyond the bare string type.

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?

States a specific verb ('Inspect') and resource ('database table schemas') with a scope qualifier ('accessible from the notebook'), so an agent knows exactly what it retrieves. It doesn't contrast itself against any sibling, but no sibling in the list plausibly overlaps with schema inspection, so confusion risk is low.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'accessible from the notebook'; there is no explicit statement of when to call this versus other discovery tools. The one useful routing hint is that session_id comes from list_notebooks, which gives the agent a prerequisite chain.

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