Skip to main content
Glama

Respond to availability request

respond_to_availability_request
Destructive

Respond to an availability request as the signed-in user: the user's own answer, so call it only when they have said which. status must be AVAILABLE or UNAVAILABLE. Who is told: the person who sent the request is notified of the answer by email or text, and the user gets a confirmation of their own answer. 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": {
      "request_id": "<request_id>",
      "status": "<status>"
    },
    "name": "respond_to_availability_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNooptional note with the response
statusYesAVAILABLE or UNAVAILABLE
request_idYesthe availability request to respond to, an id from list_availability_requests scope=received

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe 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. Changed7 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 / request_id / description
      Previous value: -"the availability request to respond to"New value: +"the availability request to respond to, an id from list_availability_requests scope=received"
    • addedInput schema / properties / request_id / minLength
      Added value: +1
    • addedInput schema / properties / status / 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: +"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

A3.6/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, openWorldHint=true, and non-idempotent, and the description adds real value on top: it discloses the outbound side effects (sender notified by email or text, user gets their own confirmation) and that it executes on the first call with no confirmation step. It does not say whether a second call re-notifies the sender or whether the answer can be changed afterwards, which is the main remaining behavioral unknown given non-idempotency.

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?

Dense and front-loaded: purpose, gating condition, valid values, side effects, and execution semantics in four short sentences with no filler. The first sentence is slightly convoluted in phrasing ('the user's own answer, so call it only when they have said which') but still parses.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the description covers the prerequisites, valid status values, notification recipients, and immediate-execution semantics that matter for a destructive mutation. The only gap is what happens on a repeat call or whether the answer can be revised later, a minor omission at this complexity level.

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%, and the schema already documents status values and that request_id comes from list_availability_requests scope=received. The description only restates the AVAILABLE/UNAVAILABLE constraint and adds no format, provenance, or edge-case detail beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb and resource ('Respond to an availability request') and pins the actor and answer source ('as the signed-in user: the user's own answer'). It does not differentiate itself by name from near siblings such as respond_to_crew_offer, respond_to_invitation, or set_availability, so an agent must infer the distinction from the resource noun alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit gating condition: call only when the user has said which answer, which prevents the agent from fabricating a response, and notes there is no confirmation step so it should not be re-called for confirmation. It offers no named alternative for the case where the user wants to change or withdraw an answer, but the when-to-call condition is clear.

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.