Skip to main content
Glama

Restore deleted gig

restore_event
DestructiveIdempotent

Bring back a gig deleted in the last 30 days (see list_events with event_status=DELETED). It comes back as a DRAFT with nobody notified: its crew invitations are reset to unsent, and publishing it (event_status ACTIVE) re-invites them. Its sent crew offers go back to DRAFT with every answer cleared, so send each one again (send_crew_offer) to ask the crew afresh. Fails with 409 once the 30 days have passed and the gig is being permanently deleted. Gig managers only. Confirmation-gated.

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": {
      "event_id": "<event_id>"
    },
    "name": "restore_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
event_idYesthe deleted gig to restore
confirmation_tokenNoleave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { id, restored } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations by disclosing concrete side effects: the gig returns as DRAFT with nobody notified, crew invitations are reset to unsent, and sent crew offers revert to DRAFT with answers cleared. It also covers the confirmation gate and the 409 expiry, so an agent understands consequences even though destructiveHint=true already flags this as a mutation.

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?

Front-loaded with the core action and time bound, then side effects, then failure mode, then access/confirmation constraints. Every clause carries operational information; nothing is redundant with the title or annotations.

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?

Covers preconditions, discovery route, side effects, failure behavior, and permissions, and an output schema exists so return values need not be explained. Nothing an agent needs to invoke this 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 coverage is 100% and the schema already spells out the confirmation_token two-call flow, so the description adds little parameter-level detail beyond restating the 'deleted gig to restore' semantics. Baseline 3 applies when the schema does the heavy lifting.

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 plus resource ('Bring back a gig') and immediately bounds scope ('deleted in the last 30 days'), with a pointer to how to locate such gigs. An agent can distinguish it from delete_event, archive_event, or open_gig without opening a schema.

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?

Names the discovery path ('see list_events with event_status=DELETED') and the follow-up action ('send each one again (send_crew_offer)'), and states the eligibility gate ('Gig managers only', 30-day window). It also gives the explicit failure condition (409 once permanently deleting), which tells the agent when not to call.

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.