Skip to main content
Glama

restore_workspace

Idempotent

Restore a workspace being deleted, before its purge_at, with everything in it. Needs an organization key or an organization admin.

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": {
      "workspace_id": "<workspace_id>"
    },
    "name": "restore_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idYes`ws_…`.

Output Schema

NameRequiredDescriptionDefault
idYes`ws_…`; it starts with its region's code, such as `ws_use_…` for `us-east`.
nameYesWhat it's for, such as "Production" or "Acme".
regionYesIts home region, where its data lives and its renders run.
statusYes`deleting` once it's deleted, until it's purged or restored.
purge_atNoWhen a deleted workspace is purged, with everything in it (RFC 3339); absent unless it's `deleting`.
created_atYesRFC 3339.
key_prefixYesWhat its API keys start with: `sk_live_`, `sk_test_` or `sk_`.
organization_idYesThe organization it belongs to, `org_…`.
rate_limit_per_minuteYesRequests per minute its keys may make, together.
monthly_spend_cap_centsNoThe most its billable work may cost per calendar month, in USD cents; none when absent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: a hard time window (purge_at), the fact that the entire workspace contents come back, and the auth requirement. The annotations already cover non-read-only, idempotent and non-destructive, so this is a solid supplement. It stops short of describing what happens if called after purge_at or whether existing conflicting state blocks the restore.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-ordered sentence: action, target, deadline, scope, then prerequisites. No filler or redundancy; each clause carries information.

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?

For a one-parameter mutation with annotations and an output schema, the description supplies what the structured fields cannot: the restore window, the breadth of restoration, and the auth model. Only the failure mode after purge_at is left implicit, a minor gap.

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?

Only one parameter, and the schema already documents it at 100% coverage as a `ws_…` identifier. The description adds no format or sourcing guidance (e.g., where to obtain the workspace_id), so it sits at the baseline for full schema coverage.

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 a specific verb ('Restore') and resource ('a workspace being deleted') plus the exact condition and scope ('before its purge_at, with everything in it'). It is unambiguously the inverse of delete_workspace and cannot be confused with get_workspace or update_workspace.

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 a clear trigger condition: use it on a workspace that is pending deletion but has not yet hit purge_at. It also names the authorization prerequisite (org key or org admin). It does not explicitly name an alternative or say what to do once purge_at has passed, which keeps it short of a 5.

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