Skip to main content
Glama

Get database connection

databases.connection.get
Read-only

Get connection details for an authorized managed database. This result contains credentials and must not be displayed, logged, or copied unless the user explicitly requests them; prefer databases.bind for app configuration.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "deployment_id": "database-deployment-id"
    },
    "name": "databases.connection.get"
  }
}

Input Schema

NameRequiredDescriptionDefault
deployment_idYesmanaged database deployment identifier
organization_idNoorganization membership to use for this call; omit only when the account has one current membership

Output Schema

NameRequiredDescriptionDefault
connectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnlyHint, openWorldHint), but the description discloses the critical trait that the response contains credentials and carries handling restrictions against display, logging, or copying. That is high-value behavioral context an agent could not obtain from the structured fields.

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 sentences, front-loaded with purpose and followed by the security constraint and routing alternative. Every clause earns its place with no redundancy.

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?

An output schema exists, so return values need not be described, and the schema fully documents both parameters. Purpose, alternative tool, and credential-handling constraint are all covered, leaving nothing an agent needs in order to call this 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%, with both deployment_id and organization_id fully documented in the schema, so the baseline is 3. The description adds no format, syntax, or constraint detail beyond what the schema already provides.

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?

States a specific verb and resource ('Get connection details') scoped to 'an authorized managed database', which distinguishes it from databases.get (metadata) and databases.bind (app configuration). The sibling it is not is named explicitly, so an agent can route without opening either schema.

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

Usage Guidelines5/5

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

Names the alternative ('prefer databases.bind for app configuration') together with the condition that selects it, and adds a when-not constraint: credentials must not be surfaced unless the user explicitly requests them. Both the routing rule and the exclusion are stated rather than left to inference.

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