Skip to main content
Glama

Ferrite

Delete a preview

delete_preview
DestructiveIdempotent

DELETE a preview explicitly - previews are part of the testing lifecycle, NOT permanent artifacts: the base-app OWNER tears a preview down IMMEDIATELY, without waiting for its TTL sweep. preview_app is the id returned by preview_ref ({owner}/{base}-preview-{short}). Authorized by owning the base app (a foreign-namespace id is refused); idempotent (deleting an already-gone preview succeeds); the TTL sweep composes (a deleted preview is skipped). Returns {PreviewDeleted:{preview_app}}.

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": {
      "preview_app": "<preview_app>"
    },
    "name": "delete_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNofallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused
preview_appYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: authorization is 'owning the base app', foreign-namespace ids are refused, deletion is idempotent and composes safely with the TTL sweep, and the return payload {PreviewDeleted:{preview_app}} is stated. These cover the risky edges (auth failure mode, repeat calls, interaction with an async sweeper) that destructiveHint and idempotentHint alone do not convey.

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-loads the action and lifecycle rationale, then packs auth, idempotency, TTL interaction, and return shape into a compact block. The heavy use of capitals and semicolon-chained clauses makes it dense, but no clause is redundant.

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, idempotent mutation with no output schema, the description supplies everything an agent needs: what it destroys, who is allowed, how repeat calls behave, how it interacts with the TTL sweep, and what is returned. Nothing material is left to inference.

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 coverage is only 50%, but the description compensates for the undocumented preview_app by giving its provenance ('the id returned by preview_ref') and its shape ({owner}/{base}-preview-{short}), which tells the agent how to construct and validate it. The token parameter is already documented in the schema, so no meaning is lost overall.

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?

Opens with a specific verb and resource ('DELETE a preview explicitly') and immediately scopes it against the alternative teardown path ('without waiting for its TTL sweep'). The agent can distinguish this from the automatic sweep and from preview_ref, the sibling that produces the id.

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?

Clear about when to use it: an explicit owner-initiated teardown during the testing lifecycle, rather than waiting for TTL expiry. It also points at preview_ref as the source of the id. It stops short of naming an explicit 'do not use when' case or a sibling alternative, so it is strong context rather than full routing guidance.

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.