Skip to main content
Glama

A person's availability

get_user_availability
Read-onlyIdempotent

Get a user's availability blocks within an organization, optionally filtered to a from/to date range. Returns a list of blocks, each with id, date, start_time, end_time, timezone, type, notes, is_recurring and, when a gig or shift created it, source_event_id, source_event_title and source_offer_id. Defaults to the signed-in user and their active org.

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": "get_user_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNooptional end of range (YYYY-MM-DD or RFC3339)
fromNooptional start of range (YYYY-MM-DD or RFC3339)
user_idNowhose availability to read, a user_id from list_org_members; the signed-in user when omitted
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: [{ date, end_time, id, is_recurring, notes, recurring_anchor_id, recurring_rule, source_event_id, source_event_title, source_offer_id, start_time, timezone, type, user_id }] }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 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 / 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"
    • changedInput schema / properties / user_id / description
      Previous value: -"defaults to the authenticated user"New value: +"whose availability to read, a user_id from list_org_members; the signed-in user when omitted"
    • 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: [{ date, end_time, id, is_recurring, notes, recurring_anchor_id, recurring_rule, source_event_id, source_event_title, source_offer_id, start_time, timezone, type, user_id }] }"
    • addedOutput schema / properties / data / properties
      Added value: +{
      +  "data": {
      +    "items": {
      +      "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"
      +    },
      +    "type": "array"
      +  },
      +  "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.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: blocks can be auto-created by a gig or shift (source_event_id, source_event_title, source_offer_id), and reads default to the signed-in user's active organization.

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?

Three sentences, front-loaded with the operation and scope, with defaults stated last where they belong. The long enumeration of returned fields is informative but reads as a field dump and slightly dilutes the key points.

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?

For a read-only, zero-required-parameter tool with full schema coverage and an output schema, the description covers purpose, filtering, defaults, and provenance of returned blocks. Enumerating return fields is partly redundant given the output schema, but nothing an agent needs in order to call it 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 description coverage is 100%, so the schema already documents all four parameters including the from/to formats and the list_org_members/get_me provenance hints. The description only restates that from/to form an optional date range and that user/org default to the caller's context, adding little beyond the structured fields.

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?

The description names a specific verb and resource ('Get a user's availability blocks within an organization') plus its scope (optional from/to filtering), which is enough to distinguish it from the sibling mutation tools set_availability/delete_availability without opening any schema.

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?

It explains the defaults (signed-in user, active org), which is practical guidance, but never states when to prefer this over alternatives such as list_availability_requests or get_org_brief, nor any exclusions. Usage is implied by the read-only framing rather than stated.

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.