Skip to main content
Glama

add_database

Attach a database or service to a project and inject its connection variables into the app; it is created on the next redeploy and billed hourly.

Instructions

Attach a database or service to a project: postgres, mysql, mongodb, redis, rabbitmq or s3. Its connection variables (e.g. DATABASE_URL) are injected into the app. It is created on the next redeploy and billed per hour from the wallet.

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": {
      "project_id": "<project_id>",
      "kind": "<kind>"
    },
    "name": "add_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, non-destructive, closed-world mutation, so the safety profile is covered. The description adds substantive behavior beyond that: connection variables such as DATABASE_URL are injected into the app, provisioning only materializes on the next redeploy, and the service is billed hourly from the wallet. Those are real consequences (side effects and cost) an agent would not otherwise know; only permissions/auth requirements are unstated.

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 sentences, front-loaded with the core action, and each sentence contributes distinct information (what it attaches, the injected variables, the deferred creation and billing). No filler or restatement of the tool name; the only weakness is that the parameter mapping is left implicit rather than spelled out.

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 the description needn't explain return values, and annotations cover the safety profile. For a two-parameter mutation tool the description is nearly complete — deferred creation and hourly billing are covered — with the main gap being no statement of required permissions or what happens if provisioning fails.

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 0%, so the description must carry parameter meaning, and it does so only partially. The enumerated service names clearly map to the `kind` parameter's expected values, but `project_id` is only implied by 'to a project' — nothing about its format, how to obtain it, or whether kind accepts arbitrary strings is specified.

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 opens with a specific verb and resource ('Attach a database or service to a project') and enumerates the supported kinds (postgres, mysql, mongodb, redis, rabbitmq, s3), so the agent knows exactly what the tool provisions. It does not name or differentiate against any sibling, but no sibling in the catalog competes with this operation, so the remaining ambiguity is small.

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 rather than stated: the enumeration of kinds signals this is the tool for provisioning a backing service, and 'It is created on the next redeploy' tells the agent the effect is deferred. There is no explicit when-to-use vs. when-not guidance, no mention of prerequisites such as the project existing, and no alternative tool named for related tasks like env var management.

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