Skip to main content
Glama

Bind database to app

databases.bind

Securely inject a managed database connection string into an app environment without returning the credential to the model.

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": {
      "restart": true,
      "variable_name": "TANDA_DATABASE_URL",
      "app_resource_id": "app-resource-id",
      "database_deployment_id": "database-deployment-id"
    },
    "name": "databases.bind"
  }
}

Input Schema

NameRequiredDescriptionDefault
restartNorestart the app after binding the database
variable_nameNoenvironment variable name; defaults to DATABASE_URLDATABASE_URL
app_resource_idYestarget app instance resource identifier
organization_idNoorganization membership to use for this call; omit only when the account has one current membership
database_deployment_idYesmanaged database deployment identifier

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false and destructiveHint=false; the description adds genuinely useful behavior beyond them by promising the credential is never returned to the model, which shapes what the agent should expect from the call and its output. It doesn't cover reversibility/unbinding or whether binding is idempotent.

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?

A single tight sentence with no filler, and the security-relevant property (credential not returned) is front-loaded rather than buried. Every clause earns its place.

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 described, and the schema covers all five parameters. The description is largely sufficient, though it omits how to undo the binding and any permission requirements for an operation that mutates app configuration.

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 restart, variable_name, app_resource_id, organization_id and database_deployment_id are all documented in the schema itself. The description adds no parameter-level meaning beyond that, which is the baseline 3 case.

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 states a specific action (inject a managed database connection string into an app environment) that maps cleanly to the 'Bind database to app' title and the two required IDs. It implicitly distinguishes itself from databases.connection.get by noting the credential is not returned, but it never names a sibling explicitly.

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 implied by the verb 'inject ... into an app environment', but there is no explicit when-to-use guidance, no stated prerequisites, and no routing to related siblings such as databases.connection.get or resources.env.configure. An agent must infer the context.

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