Skip to main content
Glama

Create availability request

create_availability_request
Destructive

Create an availability request in an organization (requires scheduler/CRM-manager access). request_mode defaults to TIME_WINDOW (requires start_time and end_time); use request_mode=DAY for a date-only request. If you pass recipient_ids the request is created AND sent after confirmation. Who is told: those recipients are notified of the request; without recipient_ids it stays a DRAFT and nobody is told. Omit recipients to create an unsent request (status DRAFT). Confirmation-gated only when recipient_ids is passed; a DRAFT applies on the first call. Pass event_id when the request is for a gig: its time zone sets the clock times shown in the response (event_timezone); without one they fall back to the organization time zone, which may be UTC. Read it back with list_availability_requests scope=organization (add request_id for just this one).

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": {
      "title": "<title>",
      "date": "<date>"
    },
    "name": "create_availability_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesthe date availability is needed (YYYY-MM-DD)
titleYesshort title for the request
end_timeNoRFC3339; required when request_mode is TIME_WINDOW; must be after start_time
event_idNooptional event to associate; must belong to the org. Its time zone sets the request's clock zone
expires_atNooptional RFC3339 expiry
start_timeNoRFC3339; required when request_mode is TIME_WINDOW
descriptionNolonger explanation of the request, beyond its title
request_modeNoTIME_WINDOW (default — requires start_time and end_time) or DAY (date only)
recipient_idsNouser ids to ask. IMPORTANT: if provided, the request is created AND SENT immediately. Omit to create a DRAFT.
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
org_position_idsNoorg position ids from list_org_positions that the request targets
confirmation_tokenNoonly when recipient_ids is passed: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token

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: { created_by_id, date, days [{ date, effective_end_time, effective_start_time, end_time, id, start_time }], description, end_time, event_id, event_status, event_title, event_type, event_timezone, expires_at, id, org_position_ids, recipients [{ availability_id, day_responses, email, email_bounced_at, email_delivered_at, email_opened_at, id, name, and 8 more fields }], request_mode, sent_at, start_time, status, and 1 more field } }
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
    • addedInput schema / properties / confirmation_token
      Added value: +{
      +  "description": "only when recipient_ids is passed: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token",
      +  "type": "string"
      +}
    • addedInput schema / properties / date / minLength
      Added value: +1
    • changedInput schema / properties / description / description
      Previous value: -"optional longer description"New value: +"longer explanation of the request, beyond its title"
    • changedInput schema / properties / event_id / description
      Previous value: -"optional event to associate; must belong to the org"New value: +"optional event to associate; must belong to the org. Its time zone sets the request's clock zone"
    • changedInput schema / properties / org_position_ids / description
      Previous value: -"optional org position ids the request targets"New value: +"org position ids from list_org_positions that the request targets"
    • 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 / title / minLength
      Added value: +1
    • 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: { created_by_id, date, days [{ date, effective_end_time, effective_start_time, end_time, id, start_time }], description, end_time, event_id, event_status, event_title, event_type, event_timezone, expires_at, id, org_position_ids, recipients [{ availability_id, day_responses, email, email_bounced_at, email_delivered_at, email_opened_at, id, name, and 8 more fields }], request_mode, sent_at, start_time, status, and 1 more field } }"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and non-idempotent but explain nothing; the description fills that gap by disclosing the side effect (recipients are notified, request is sent immediately), the draft/send state transition, the confirmation-gating rule and that only the recipient_ids path needs a token. It also warns that without event_id the clock zone falls back to the organization time zone, which may be UTC — a real correctness risk for an agent.

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?

It is front-loaded and dense — every clause is operational. However, the draft-vs-send rule is stated three times in slightly different words ('created AND sent', 'without recipient_ids it stays a DRAFT', 'Confirmation-gated only when recipient_ids is passed'), which is redundant for a description this long.

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?

Twelve parameters, a confirmation handshake, a time-zone dependency and a global side effect are all accounted for, and an output schema exists so return values need no explanation. An agent has everything needed to call it correctly on the first attempt.

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 baseline is 3. The description still adds meaning beyond the schema: it names the derived response field (event_timezone) that depends on event_id, restates that request_mode defaults to TIME_WINDOW so omission is safe, and clarifies the confirmation_token round-trip as a same-args resend.

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 and resource ('Create an availability request in an organization') and immediately states the access requirement. The sibling set is full of similarly named tools (send_availability_request, list_availability_requests); the description makes clear this one creates, and that sending only happens as a consequence of recipient_ids.

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?

Gives explicit branching guidance: request_mode defaults to TIME_WINDOW and requires start_time/end_time, use DAY for date-only; pass recipient_ids to create-and-send, omit for a DRAFT; pass event_id when the request is for a gig. It also routes the agent to a sibling for readback ('list_availability_requests scope=organization'), which is exactly the alternative-selection information an agent needs.

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.