Skip to main content
Glama

get_database

Read-onlyIdempotent

Fetch a single database's configuration details by engine type and database ID, with password fields redacted for safe inspection.

Instructions

Get one database. Password fields are redacted.

engine is postgres, mysql, mariadb, mongo, redis, or libsql. database_id is that engine's id, for example postgresId.

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": {
      "engine": "<engine>",
      "database_id": "<database_id>"
    },
    "name": "get_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
engineYes
database_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely new behavioral information not in the annotations: password fields are redacted in the result, which tells the agent what the response will and will not contain.

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 short sentences, front-loaded with the operation, followed by the redaction caveat and the parameter convention. The engine enumeration partially duplicates the schema's enum, but it is needed to make the postgresId mapping intelligible, so little is wasted.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. What remains is filled by the parameter convention and redaction note; only the not-found behavior and sibling routing are left implicit.

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 description coverage is 0%, so the description must carry the parameter burden, and it does: it names the engine values and explains that database_id is the engine-specific id (e.g. postgresId), which resolves the otherwise opaque "Database Id" string. It stops short of stating the id format or how to obtain one.

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 verb and resource ("Get one database") and makes the single-record scope explicit, which contrasts with list_databases. It does not name that sibling, but the singular scope alone is enough to separate the two.

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: fetching a single database by engine and id. There is no explicit statement of when to prefer this over list_databases or what to do if the id is unknown, so the agent must infer the routing.

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