Skip to main content
Glama

Deploy to Staging

deploy_staging
Destructive

Deploy a project to the staging environment. This triggers: (1) Schema validation, (2) Docker image build, (3) GitHub commit, (4) Kubernetes deployment, (5) Database migrations. The operation is ASYNCHRONOUS - it returns immediately with a job_id. Use get_job_status with the job_id to monitor progress. Deployment typically takes 2-5 minutes depending on schema complexity. If deployment fails, read the job's error first: one that starts with 'RationalBloks platform error' is the platform's, not the schema's. Otherwise check: (1) Schema format is FLAT (no 'fields' nesting), (2) Every field has a 'type' property, (3) Foreign keys reference existing tables, (4) No PostgreSQL reserved words in table/field names. Use get_project_info to see if the deployment succeeded. A deploy that drops data is refused until you pass confirm_destructive=true after reviewing the plan. One operation runs on a project at a time: while another runs, the call is refused and the refusal names the running job; wait for it with get_job_status, then call again. While RationalBloks is being updated, the call is refused with 'RationalBloks is being updated': call it again in a few minutes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID (UUID)
confirm_destructiveNoSet true only after reviewing the plan: a deploy that drops tables, columns, entities, relationships or fields is refused without it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / confirm_destructive
      Added value: +{
      +  "description": "Set true only after reviewing the plan: a deploy that drops tables, columns, entities, relationships or fields is refused without it",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already mark destructiveHint=true and idempotentHint=false; the description goes further by disclosing the asynchronous nature (returns immediately with a job_id), the typical 2–5 minute duration, the refusal for destructive changes unless confirm_destructive=true, and the concurrency lock. It also explains the error-start clue for platform vs schema errors, which annotations do not provide. There is no contradiction with the annotations.

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 fairly long but front-loaded and highly informative. Every sentence earns its place—the numbered pipeline steps improve scannability, and the troubleshooting guide is directly actionable. It loses one point for being dense: the troubleshooting section could be tightened, and the numbered list plus the parentheses-heavy error guidance make it slightly harder to parse quickly.

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?

Given a mutation tool with destructive potential, no output schema, and two parameters, the description covers what an agent needs to call it correctly: input (project_id, confirm_destructive), asynchronous behavior (job_id), monitoring (get_job_status), success verification (get_project_info), failure diagnosis (error prefix), and concurrency/update refusals. It is comprehensive enough that an agent can invoke it safely without additional context.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already documents both parameters well. The description nevertheless adds value by explaining the semantics of confirm_destructive (a deploy that drops data is refused until you pass true after reviewing the plan), and by mentioning project_id implicitly in the context of 'a project at a time' and the deployment pipeline. Minor deduction: it does not explicitly restate project_id as a UUID, but the schema already does that.

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?

States specific verb+resource ('Deploy a project to the staging environment'), and enumerates the exact deployment pipeline steps (schema validation, Docker build, GitHub commit, Kubernetes deployment, DB migrations). It further distinguishes itself from siblings by being asynchronous and returning a job_id, versus the production deployment tools which target a different environment.

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?

Explicitly tells the agent when to use the tool and what to do while it runs: use get_job_status with the returned job_id to monitor progress; use get_project_info to confirm success. It also covers when NOT to call it—if another operation is running on the same project, or during the 'RationalBloks is being updated' window—and how to recover by waiting and retrying.

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.