Skip to main content
Glama

Set availability

set_availability

Create 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

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD
typeNoAVAILABLE or UNAVAILABLE (case-insensitive); omitted means AVAILABLE
notesNofree-text note saved on the availability block
end_timeYesRFC3339 timestamp
start_timeYesRFC3339 timestamp
is_recurringNotrue if this is a recurring block
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe 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 } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 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 / date / minLength
      Added value: +1
    • addedInput schema / properties / end_time / minLength
      Added value: +1
    • changedInput schema / properties / notes / description
      Previous value: -"optional notes"New value: +"free-text note saved on the availability block"
    • 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 / start_time / minLength
      Added value: +1
    • changedInput schema / properties / type / description
      Previous value: -"AVAILABLE or UNAVAILABLE (case-insensitive; omit for server default)"New value: +"AVAILABLE or UNAVAILABLE (case-insensitive); omitted means AVAILABLE"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / data / additionalProperties
      Added value: +{}
    • 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: 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 } }"
    • addedOutput schema / properties / data / properties
      Added value: +{
      +  "data": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "created_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "date": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "end_time": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "is_recurring": {
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "notes": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "organization_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "start_time": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "timezone": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "updated_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "user_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "status": {
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / properties / data / type
      Added value: +"object"
  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.7/5.0
Behavior4/5

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

The annotations already establish that this is a non-read-only, non-destructive, non-idempotent write. The description adds meaningful behavioral context: it runs on the first call, has no confirmation step, defaults an omitted type to AVAILABLE, and returns the created entry.

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 description is front-loaded with the core action and remains dense without being bloated. Some type-default wording overlaps with the schema and output schema, but the key risk of accidentally creating an AVAILABLE block is clearly surfaced.

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?

Given seven parameters, full schema coverage, an output schema, and useful annotations, the description is complete enough for an agent to invoke the tool correctly. The main remaining gap is lack of explicit sibling-tool routing, but the immediate write behavior and type default are covered.

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 description coverage is 100%, so the baseline is 3. The description reinforces the type parameter's default and case behavior, but most of that is already present in the schema, and it does not add much for date, start_time, end_time, notes, is_recurring, or organization_id.

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?

The description states a specific verb and resource: create an availability block for the signed-in user, with a concrete example. It is clear what the tool does, but it does not explicitly distinguish itself from nearby tools such as create_availability_request or get_user_availability.

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

Usage Guidelines3/5

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

Usage is implied by 'for the signed-in user' and by the instruction to ask the user when the request does not specify AVAILABLE vs UNAVAILABLE. However, there is no explicit guidance on when to choose this tool over sibling alternatives such as create_availability_request or get_user_availability.

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.