Skip to main content
Glama

Delete a shift

delete_crew_offer
DestructiveIdempotent

Delete a crew offer (shift) from a gig. If it was OPEN, its recipients are emailed that it was withdrawn; payables for accepted recipients are voided. To drop just one person, use remove_crew_offer_recipient. Refused with 409 GIG_ROSTER_LOCKED on a completed and settled gig: reopen_event first. 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": {
      "offer_id": "<offer_id>"
    },
    "name": "delete_crew_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
offer_idYescrew offer id from list_crew_offers / get_crew_offer
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
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: absent (the API answers 204 with no body) }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes well beyond them by disclosing side effects that are invisible from the schema: recipient emails on OPEN offers and voided payables for accepted recipients. It also reports the concrete failure mode (409 GIG_ROSTER_LOCKED) and its remedy, which is exactly the operational context an agent needs before a destructive call.

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?

Four short sentences, each load-bearing: scope, side effects, alternative, error path and gating. Side-effect disclosure and the sibling redirect are front-loaded before the edge-case handling, so the agent gets the critical facts first.

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, open-world mutation with three parameters and an output schema, the definition covers what is destroyed, who is notified, which error blocks it, and how to unblock. Return-value details are correctly left to the output schema.

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

Parameters5/5

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

Schema description coverage is 100%, so the baseline would be 3; the description adds value by naming the confirmation flow ("Confirmation-gated") that explains why confirmation_token exists. It does not, however, restate the offer_id or organization_id semantics, which the schema already carries.

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+resource ("Delete a crew offer") and immediately disambiguates the term by glossing it as "(shift) from a gig." It also names the sibling that performs a narrower deletion, so an agent can distinguish the two without consulting either 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?

Explicitly routes the agent: use remove_crew_offer_recipient when only one person should be dropped, and call reopen_event first on a completed and settled gig. It also flags that the call is confirmation-gated, which tells the agent to expect a two-step invocation.

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.