Skip to main content
Glama

Respond to a shift offer

respond_to_crew_offer
DestructiveIdempotent

Accept or decline a crew offer (shift) sent to the signed-in user: the user's own answer, so call it only when they have said which. Find offers with list_crew_offers (scope mine). Who is told: the person who sent the offer is notified of the answer; accepting also puts the shift on the user's Google Calendar (Google emails them the event) and can send out a form or agreement request the organization set to go out when crew accept. Idempotent: answering the same way twice is a no-op. A decline on a completed and settled gig is refused (409 GIG_ROSTER_LOCKED); someone who manages the gig must reopen_event first. Runs on the first call; there is no confirmation step.

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>",
      "response": "<response>"
    },
    "name": "respond_to_crew_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
offer_idYesthe crew offer id, from my_pending_actions or list_crew_offers
responseYesthe user's own answer to the offer

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { recipient_drafts [{ user_id, fee, username, email, shift_overlaps }], calllist_id, created_by_id, currency, date, days [{ accepted_count, capacity, date, effective_end_time, effective_fee, effective_start_time, end_time, fee, and 4 more fields }], description, end_time, event_id, event_status, event_title, event_type, event_timezone, expires_at, fee, fee_type, id, kind, and 11 more fields } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: recipient of the notification, Google Calendar event creation, possible form/agreement request triggered by acceptance, a concrete error code (409 GIG_ROSTER_LOCKED) with its remediation, and the explicit 'no confirmation step' warning that the call executes immediately. This complements destructiveHint=true and idempotentHint=true with real operational detail rather than restating them.

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 core action and followed by consequences, prerequisites, and failure mode in descending priority. Dense and slightly run-on with semicolon chains, but no sentence is filler and the imperative constraint appears early.

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 state-mutating tool with cascading side effects, everything an agent needs is covered: side effects, idempotency, error case with remedy, no-confirmation behavior, and offer discovery. An output schema exists, so return-shape detail is correctly omitted.

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 100%, so the baseline is 3; the description earns above that by emphasizing that the response is 'the user's own answer', implying the agent must not pick accept/decline on the user's behalf. It also names list_crew_offers as an offer_id source, consistent with the schema but reinforcing the retrieval path.

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 pair and resource: 'Accept or decline a crew offer (shift) sent to the signed-in user'. It also scopes the actor ('the signed-in user's own answer'), which separates it from list_crew_offers and from manager-side tools like delete_crew_offer or send_crew_offer.

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?

Explicit gating condition — 'call it only when they have said which' — plus a named alternative for discovery ('Find offers with list_crew_offers (scope mine)') and a prerequisite path for the blocked case ('someone who manages the gig must reopen_event first'). When-to-use, when-not-to-use, and alternatives are all present.

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.