Skip to main content
Glama

Delete availability entry

delete_availability
DestructiveIdempotent

Delete one availability entry (an AVAILABLE/UNAVAILABLE block) from a person's calendar. Anyone can delete their own; availability managers can delete an org member's. availability_id comes from get_user_availability. The entry is removed and this server cannot restore it; set_availability can add the block again. Confirmation-gated.

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": {
      "user_id": "<user_id>",
      "availability_id": "<availability_id>"
    },
    "name": "delete_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesuser_id of the person whose calendar holds the entry; your own is the id get_me returns
availability_idYesentry id from get_user_availability
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
confirmation_tokenNoleave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: absent (the API answers 204 with no body) }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description is not needed for the safety profile. It nonetheless adds the critical fact that removal is irreversible on this server, plus the permission model and the fact that the call is confirmation-gated — none of which the annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the operation and its scope, then permissions, then provenance, then irreversibility and the confirmation gate. Nothing is repetitive or ornamental.

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?

For a destructive deletion with four parameters and an output schema, the description covers what an agent needs to act safely: scope, authorization, id source, irreversibility, and the confirmation flow. Return-shape details are correctly left to the output schema.

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 every parameter including user_id, organization_id, and the confirmation_token handshake is already documented in the schema. The description's provenance hints (availability_id from get_user_availability, own id from get_me) largely restate the schema, so baseline 3 applies.

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?

States a specific verb and resource with scope: 'Delete one availability entry (an AVAILABLE/UNAVAILABLE block) from a person's calendar.' The parenthetical defines exactly what an entry is, and the deletion target is unambiguous against siblings like get_user_availability and set_availability.

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 concrete applicability conditions: anyone can delete their own entry, availability managers can delete an org member's. It also names the source of the required id (get_user_availability) and points to set_availability as the way to re-add a block, so an agent can route correctly.

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.