Set availability
set_availabilityCreate an availability block for the signed-in user (e.g. 'unavailable next Tuesday 6–10pm'). type is AVAILABLE or UNAVAILABLE (case-insensitive; stored uppercase); an omitted type creates an AVAILABLE block, so pass UNAVAILABLE for time the user cannot work, and ask the user when the request does not say which. Returns the created availability entry. 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": {
"date": "<date>",
"start_time": "<start_time>",
"end_time": "<end_time>"
},
"name": "set_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | YYYY-MM-DD | |
| type | No | AVAILABLE or UNAVAILABLE (case-insensitive); omitted means AVAILABLE | |
| notes | No | free-text note saved on the availability block | |
| end_time | Yes | RFC3339 timestamp | |
| start_time | Yes | RFC3339 timestamp | |
| is_recurring | No | true if this is a recurring block | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | the API response { status (HTTP status), data: the new block: { created_at, date, end_time, id, is_recurring, notes, organization_id, recurring_anchor_id, recurring_rule, source_event_id, source_event_title, source_offer_id, start_time, timezone, type, updated_at, user_id } } | |
| error | No | when ok is false |