Skip to main content
Glama

Availability requests

list_availability_requests
Read-onlyIdempotent

List availability requests, or pass request_id to read one. scope=received lists the requests sent to you (user_id defaults to you); status filters on YOUR reply: PENDING, AVAILABLE, UNAVAILABLE, EXPIRED, WITHDRAWN. scope=organization lists every request an organization created, including drafts; it needs crm.manage there, takes organization_id (defaults to your active organization) and event_id, and status filters on the request itself: DRAFT, OPEN, CLOSED, EXPIRED, CANCELLED. With scope omitted: user_id means received; organization_id, event_id, or a status only a request has (DRAFT, OPEN, CLOSED, CANCELLED) means organization; otherwise received. A status or filter that does not belong to the chosen scope is rejected rather than ignored. With request_id the list filters are ignored: scope=received reads it as a recipient (recipients filtered to you; a request you were not sent returns 404), scope=organization reads it as the manager with every recipient and reply (use it to read back a request you created, including a DRAFT); with scope omitted, organization_id means organization, otherwise the recipient view is tried first and a 404 falls back to your active organization.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_availability_requests"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNomax 100, default 25
scopeNoreceived = requests sent to you; organization = requests your organization created (needs crm.manage)
offsetNorows to skip before this page; omit to start at the first row
statusNoreceived: PENDING|AVAILABLE|UNAVAILABLE|EXPIRED|WITHDRAWN; organization: DRAFT|OPEN|CLOSED|EXPIRED|CANCELLED
user_idNoreceived scope only; defaults to the signed-in user
event_idNoorganization scope only; requests for this gig
request_idNoread this one availability request instead of listing
organization_idNoscope=organization only: an organization id from get_me; your active organization when omitted

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: a list: [{ 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 }]; one request (request_id): { 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. Changed16 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 / event_id
      Added value: +{
      +  "description": "organization scope only; requests for this gig",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"max 10000, default 10000"New value: +"max 100, default 25"
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / limit / minimum
      Added value: +-9007199254740991
    • changedInput schema / properties / offset / description
      Previous value: -"default 0"New value: +"rows to skip before this page; omit to start at the first row"
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / offset / minimum
      Added value: +-9007199254740991
    • addedInput schema / properties / organization_id
      Added value: +{
      +  "description": "scope=organization only: an organization id from get_me; your active organization when omitted",
      +  "type": "string"
      +}
    • addedInput schema / properties / request_id
      Added value: +{
      +  "description": "read this one availability request instead of listing",
      +  "type": "string"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "received = requests sent to you; organization = requests your organization created (needs crm.manage)",
      +  "enum": [
      +    "received",
      +    "organization"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / status / description
      Previous value: -"optional status filter (e.g. PENDING)"New value: +"received: PENDING|AVAILABLE|UNAVAILABLE|EXPIRED|WITHDRAWN; organization: DRAFT|OPEN|CLOSED|EXPIRED|CANCELLED"
    • changedInput schema / properties / user_id / description
      Previous value: -"defaults to the authenticated user"New value: +"received scope only; defaults to the signed-in user"
    • 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: +"the API response { status (HTTP status), data: a list: [{ 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 }]; one request (request_id): { 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.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is covered; the description goes further by disclosing the permission gate for organization scope, the 404 returned when you were not a recipient, and the fact that mismatched filters are rejected. Those are behavioral traits an agent cannot infer from the annotations and that materially affect call planning.

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 purpose and mode, and every clause carries information — nothing is filler. However, the final sentence is a single very long nested conditional chain (scope omitted, organization_id, recipient view, 404 fallback) that would read far better as a short list, which costs it the top score.

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?

Eight parameters, all optional, with branching scope logic — the description covers scope inference, permission requirements, status vocabularies per scope, request_id precedence, and failure modes. An output schema exists, so return-value explanation is correctly omitted, and nothing an agent needs to call 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%, so the baseline is 3 and the schema already documents each parameter's meaning. The description does add real value on top — default resolution (user_id defaults to you, organization_id defaults to your active organization) and the cross-parameter interaction where request_id causes list filters to be ignored — but it largely restates enum and scope semantics already present in the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource plus the dual mode ('List availability requests, or pass request_id to read one'), so an agent immediately knows this is a read tool with list/single-record behavior. It never names a sibling such as respond_to_availability_request or get_user_availability, so differentiation from adjacent tools is left to the reader, but the tool's own scope is unambiguous.

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 selection rules for every branch: scope=received vs scope=organization, what each requires (crm.manage), and a deterministic inference rule when scope is omitted (user_id means received; organization_id/event_id or a request-only status means organization). It also states the negative case — a status or filter that does not belong to the chosen scope is rejected rather than ignored — and the request_id fallback order (recipient view first, 404 falls back to active organization).

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.