Skip to main content
Glama

Build an app again

rebuild_app
Destructive

Builds the app again from the latest commit of its repository (or its last upload) and deploys it when the build passes. Use after a failed build, or to ship new commits when auto-deploy is off. One build per app at a time; limits on builds running and builds per hour; a refusal says when to try again. Poll get_app_status.

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": {
      "app_id": "<app_id>"
    },
    "name": "rebuild_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe app id returned by list_apps

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing concurrency ('one build per app at a time'), rate limits on running builds and builds per hour, the refusal-with-retry-time behavior, and the asynchronous nature requiring polling. It does not spell out what the destructiveHint implies (e.g. replacing the currently live deployment on success), which is the main residual gap.

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?

Front-loaded with the action and its source, then constraints, then the follow-up directive in a clipped four-sentence form. Dense but nearly every clause carries operational information; the abbreviated 'Poll get_app_status.' reads slightly telegraphic but is not wasteful.

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?

With no output schema, the description correctly explains that the call returns a build that is later observed via get_app_status rather than finished results, and it covers limits and refusal behavior. An agent has enough to invoke it and know what to do next.

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?

The single app_id parameter is fully documented in the schema (100% coverage) as 'the app id returned by list_apps', so the description adds nothing and needs to add nothing. Baseline 3 applies since the schema carries the whole burden.

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?

States a specific verb and resource plus the exact source of the build ('latest commit of its repository (or its last upload)') and the deploy-on-success behavior. It is clearly a rebuild-and-deploy action, but it never distinguishes itself from the sibling redeploy_app or deploy_app, which an agent would plausibly confuse with this.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives two concrete triggering conditions — after a failed build, and shipping new commits when auto-deploy is off — plus a follow-up instruction to poll get_app_status. What's missing is the negative case: no guidance on when to prefer redeploy_app or deploy_app instead, despite both being siblings with overlapping semantics.

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.