Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Clear development database

tzcloud_clear_development_database
Destructive

Clear your application's development database: drop every table and row and create it again empty under the same role. It cannot be undone. The development credential and environment-file connection string keep working. Production's database is never cleared. Give a person approval_url to approve in a browser. Read read_approval_status until it ends. Rebuild only on completed. After completion, restart development to re-run the serving version's migrations. Deploy development for edited migration files. On one environment, restart your local run. A development deploy or restart in flight when approved fails the clear as deploy_in_flight, clearing nothing.

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": {
      "application": "<application>",
      "environment": "<environment>"
    },
    "name": "tzcloud_clear_development_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idNoAny string you choose. A repeat from the same account while the earlier pending action is live (requested, approved, or executing) returns it again; once it has ended, it starts a new one. Omitted, every call creates a new one.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
environmentYes`development` alone; `production` is refused `invalid_request`, because no action clears production's database.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the destructiveHint=true annotation, the description states the action is irreversible, that the credential and environment-file connection string survive, that production is never touched, and that an in-flight deploy/restart causes a `deploy_in_flight` failure that clears nothing. The remaining gap is that it doesn't say what the immediate response payload contains beyond implying an `approval_url`.

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 most important facts — what is destroyed and that it cannot be undone — are front-loaded, and every sentence carries operational content. The later sentences are telegraphic and slightly choppy ("Rebuild only on completed."), which costs some flow but not information.

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?

For a destructive, approval-gated tool with no output schema and fully documented parameters, the description supplies the approval loop, the failure mode, and the post-completion steps an agent needs. Nothing essential to calling 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 `application`, `environment`, and `request_id` are already fully documented in the schema, including the repeat-request semantics. The description adds only the indirect point that an `approval_url` is produced for a human, which ties into `request_id` but doesn't extend the parameter meanings beyond the schema.

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 opens with a concrete verb and resource — "Clear your application's development database: drop every table and row and create it again empty under the same role" — which tells an agent exactly what state change occurs. It also scopes the tool to development and explicitly excludes production, separating it from the other database tools in the sibling list.

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 lays out the required operating sequence: hand a person `approval_url`, poll `read_approval_status` until it ends, and proceed only on `completed`. It also names follow-up actions (restart development to re-run migrations, deploy development for edited migration files) and a precondition (no deploy or restart in flight), so an agent knows both when and how to invoke it.

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