Skip to main content
Glama

Read a managed database connection

openbao_database_connection_get
Read-onlyIdempotent

Read a managed database connection's metadata—target cluster, provider, mount path, phase, roles, and creation time—without exposing its stored administrator credential.

Instructions

Read a managed database connection

Returns targetCluster, targetProvider, mountPath, phase, roles and creation time for the selected integration without revealing its stored administrator credential. Obtain its name from openbao_database_connections_list; an unknown name returns 404.

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": {
      "cluster": "<cluster>",
      "connection": "<connection>"
    },
    "name": "openbao_database_connection_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterYesManaged cluster name; the RBAC object is namespace/cluster.
namespaceNoNamespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter.
connectionYesExact integration name from openbao_database_connections_list; names assigned at creation match [a-z][a-z0-9-]{0,30}.

Output Schema

NameRequiredDescriptionDefault
nameYes
phaseYes
rolesYes
messageNo
createdAtYes
mountPathYes
operationIdNo
targetClusterYes
targetProviderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $defs / NamespaceName
      Removed value: -{
      -  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      -  "maxLength": 32,
      -  "minLength": 2,
      -  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      -  "type": "string"
      -}
    • addedInput schema / $defs / NamespaceName_depth16
      Added value: +{
      +  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +  "maxLength": 32,
      +  "minLength": 2,
      +  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +  "type": "string"
      +}
    • addedInput schema / properties / cluster / description
      Added value: +"Managed cluster name; the RBAC object is namespace/cluster."
    • addedInput schema / properties / connection / description
      Added value: +"Exact integration name from openbao_database_connections_list; names assigned at creation match [a-z][a-z0-9-]{0,30}."
    • changedInput schema / properties / namespace / $ref
      Previous value: -"#/$defs/NamespaceName"New value: +"#/$defs/NamespaceName_depth16"
    • addedInput schema / properties / namespace / description
      Added value: +"Namespace of the requested object; defaults to default for single-object routes and creation. On collection routes (/clusters, /operations, /events, /events/stream, /orphaned-volumes, /backup-storages and root /metrics), absence includes all authorized namespaces and a value filters to that namespace. A nonexistent explicit namespace returns 404 not_found with resource namespace and its name only when the authenticated caller has a permission in that namespace. Otherwise collections remain empty and object requests retain their normal 403 response without revealing existence. Public and unauthenticated authentication routes do not resolve the parameter."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "OpenBaoDatabaseRole_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "access": {
      +          "enum": [
      +            "readonly",
      +            "readwrite"
      +          ],
      +          "type": "string"
      +        },
      +        "credentialsPath": {
      +          "type": "string"
      +        },
      +        "database": {
      +          "type": "string"
      +        },
      +        "defaultTtlSeconds": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "maxTtlSeconds": {
      +          "format": "int64",
      +          "type": "integer"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "access",
      +        "credentialsPath"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "createdAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "mountPath": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "phase": {
      +      "enum": [
      +        "pending",
      +        "ready",
      +        "deleting",
      +        "failed"
      +      ],
      +      "type": "string",
      +      "x-enum-varnames": [
      +        "OpenBaoConnectionPending",
      +        "OpenBaoConnectionReady",
      +        "OpenBaoConnectionDeleting",
      +        "OpenBaoConnectionFailed"
      +      ]
      +    },
      +    "roles": {
      +      "items": {
      +        "$ref": "#/$defs/OpenBaoDatabaseRole_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "targetCluster": {
      +      "type": "string"
      +    },
      +    "targetProvider": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "targetCluster",
      +    "targetProvider",
      +    "mountPath",
      +    "phase",
      +    "roles",
      +    "createdAt"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds meaningful behavior beyond them: the response fields returned and the important fact that the stored administrator credential is not revealed. It also discloses the 404 failure mode, though nothing about pagination, latency, or permissions beyond the implicit RBAC note in the schema.

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 tight sentences: the first states what is returned and the credential-redaction guarantee, the second gives the prerequisite and error behavior. Nothing is padded and the most important constraint is front-loaded.

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 a full output schema and rich annotations, the description only needs to add value, which it does by naming returned fields, the credential redaction guarantee, name sourcing, and the 404 case. Nothing an agent needs to call it correctly is missing.

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 all three parameters are already documented, including the note that connection comes from the list tool. The description adds only the 404-on-unknown-name consequence, largely restating what the connection parameter's schema text already says, so the baseline 3 applies.

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?

The description states a specific verb and resource ('Read a managed database connection') and immediately enumerates the returned fields (targetCluster, targetProvider, mountPath, phase, roles, creation time), which distinguishes it from the list sibling. An agent can identify the tool's job without opening the schema.

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 explicitly routes the agent to openbao_database_connections_list as the source of a valid name and states the failure mode ('an unknown name returns 404'). It gives no guidance on when to prefer the role/user getters over this connection getter, but the context it does provide clearly selects correct usage.

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

Deploy Server

Other Tools