Skip to main content
Glama

Acquire test database

acquire_test_database

Get an isolated PostgreSQL test database cloned from the project's dev database, plus Redis, and receive plaintext connection strings for running tests against realistic data.

Instructions

Acquire an isolated real test environment (a PostgreSQL database cloned from the project's dev database, plus a free Redis db) and return plaintext connection strings. Use this whenever tests need a real database — never fall back to sqlite or an in-memory substitute. The PG database is a clone of the project's dev database, so it already has schema and seed data. Auto-reclaimed at expiry; call release_test_database when done. Requires project and purpose.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindsNo
purposeYes
project_idYes
ttl_minutesNo
approval_tokenNo
approval_wait_secondsNo
Behavior4/5

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

With no annotations, the description carries the full burden, and it does well: it discloses that the environment is isolated, cloned from dev with schema and seed data, auto-reclaimed at expiry, and that connection strings are returned in plaintext. It doesn't cover every side effect like approval flow or resource cleanup after expiry, but the most important behavioral traits are present.

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?

The description is concise and opens with the core behavior and return value before adding usage guidance and lifecycle notes. Each sentence adds useful information, though there is slight redundancy in mentioning the dev-clone twice.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the core return value, the source schema state, and the required inputs, but it leaves the optional parameter semantics unexplained. Given that there is no output schema and no annotations, the missing details around ttl, kinds, and approval flow make the description incomplete for complex usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and there are 6 parameters, but the description only lightly references 'project' and 'purpose'. It does not explain the optional parameters kinds, ttl_minutes, approval_token, or approval_wait_seconds, nor does it clarify formats or units for any parameter.

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 uses a specific verb and resource: it acquires an isolated PostgreSQL clone plus a free Redis database and returns plaintext connection strings. It clearly distinguishes the acquisition action from the sibling lifecycle tools like release_test_database, renew_test_database, and list_test_databases.

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?

It explicitly states when to use the tool: 'whenever tests need a real database' and even warns against falling back to sqlite or in-memory substitutes. It also tells the caller to call release_test_database when done, providing clear lifecycle context and an alternative action.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Xsxdot/super-dev'

If you have feedback or need assistance with the MCP directory API, please join our Discord server