Skip to main content
Glama

Send a shift to crew

send_crew_offer
Destructive

Send a shift to crew so they can accept or decline: this flips a DRAFT to OPEN and notifies recipients by email/SMS/push. Omit recipient_ids/recipients to send to the recipients already attached (or the linked call list); pass them to add or target specific people. recipients[] carries per-person fees for people this send ADDS and its user_ids are sent too (no need to repeat them in recipient_ids); a fee for someone already attached is refused here — set it with save_crew_offer first. The confirmation token binds the exact people who will be notified (named plus already attached) and their fees, so attaching someone or changing a fee after approval re-gates the send. Re-sending an OPEN shift reaches newly added people and attached PENDING recipients whose delivery status is NOT_SENT (the tool refuses a no-op send and says so); use send_reminder kind=crew_offer for nudges. To ask someone who declined again, name them in recipient_ids and pass reask_dates with the day or days to re-ask. With no recipients given, the current members of the linked call list are resolved now and sent by id. Messages real people, so it is confirmation-gated — the confirmation summary names the shift and who will be notified.

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": "send_crew_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
offer_idYescrew offer id from list_crew_offers / save_crew_offer
recipientsNorecipients with per-person fees
reask_datesNoDays to ask the people in recipient_ids again after they declined them (one day or several). Their declined days on those dates go back to pending and they are notified. Days that have passed stay declined. Without this, a send never re-asks someone who declined.
recipient_idsNouser ids to send to
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: { 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. Changed11 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / offer_id / description
      Previous value: -"crew offer id from list_org_crew_offers / create_crew_offer"New value: +"crew offer id from list_crew_offers / save_crew_offer"
    • addedInput schema / properties / offer_id / minLength
      Added value: +1
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • addedInput schema / properties / reask_dates
      Added value: +{
      +  "description": "Days to ask the people in recipient_ids again after they declined them (one day or several). Their declined days on those dates go back to pending and they are notified. Days that have passed stay declined. Without this, a send never re-asks someone who declined.",
      +  "items": {
      +    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / properties / recipients / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / recipients / items / properties / day_rate
      Added value: +{
      +  "description": "fixed shifts only, instead of fee: pay this person per day; their fee becomes this rate times the shift days and they are paid it for each day they accept",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • changedInput schema / properties / recipients / items / properties / user_id / description
      Previous value: -"org member user id"New value: +"user_id of the org member, from list_org_members"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"when 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: { 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 } }"
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already mark this as non-readonly, destructive, open-world, and non-idempotent, and the description adds substantial behavior beyond that: notification channels, confirmation-token binding of named and attached recipients, fee rejection for already attached people, and specific re-send semantics. It also warns that this messages real people and is confirmation-gated.

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?

The definition is dense and somewhat long, but it is front-loaded with the core action and state transition before diving into recipient edge cases. Most clauses carry operational value, though a few related ideas are repeated and the single-paragraph structure makes the heavy edge-case coverage harder to scan.

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?

Given the confirmation-gated mutation, recipient resolution rules, re-ask behavior, and notification side effects, the description is complete enough for an agent to call it correctly. An output schema exists, so the description does not need to explain return values.

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?

Although schema coverage is 100%, the description adds important cross-parameter meaning not captured by individual field descriptions: omitted recipients resolve to attached people or the linked call list, recipients[].user_ids are also sent so need not be repeated in recipient_ids, and reask_dates is only meaningful alongside recipient_ids. It also explains that the confirmation token binds the exact recipient set and fees.

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?

The description states a specific verb and resource, 'Send a shift to crew', and adds the key state transition from DRAFT to OPEN plus notification behavior. It explicitly distinguishes the operation from save_crew_offer for fee changes and send_reminder for nudges, so an agent can identify the tool's role without opening sibling schemas.

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?

It gives explicit when-to-use guidance: omit recipient_ids/recipients to send to already attached recipients or the linked call list, pass recipients to add or target people, and use send_reminder for nudges. It also covers re-sending an OPEN shift, re-asking declined people with reask_dates, and refusing a no-op send.

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.