Skip to main content
Glama

clear_availability_rules

DestructiveIdempotent

Removes availability rules from a calendar, reverting it to default settings with no buffers or working-hours mask.

Instructions

Remove the availability rules from a calendar, reverting to the default (no buffers, no working-hours mask). Returns the deleted row, or an error if none were set.

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": {
      "calendar_id": "<calendar_id>"
    },
    "name": "clear_availability_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
calendar_idYesCalendar whose rules should be cleared

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.8.4
    • addedInput schema / properties / calendar_id / maxLength
      Added value: +128
    • addedInput schema / properties / calendar_id / minLength
      Added value: +1
    • addedInput schema / properties / calendar_id / pattern
      Added value: +"^[A-Za-z0-9_-]*$"
  2. First observedv1.2.5

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description still adds real value beyond them: exactly what is destroyed (buffers and working-hours mask), the post-state (defaults), and the return contract (deleted row or an error if none were set). Minor tension exists between 'error if none were set' on a repeat call and the idempotentHint, but that concerns state, not a contradiction.

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?

Two sentences, no filler, with the destructive effect front-loaded and the return contract placed second. Every clause carries information an agent needs.

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 single-parameter destructive mutation with no output schema, the description states the effect, the resulting default state, the return value, and the error case. Combined with annotations covering safety and idempotency, nothing material is missing to invoke it correctly.

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?

Only one parameter and schema coverage is 100%, with the schema itself describing it as 'Calendar whose rules should be cleared'. The description's 'from a calendar' adds no syntax, format, or ID-sourcing detail beyond that, so the baseline 3 is appropriate.

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?

A precise verb+resource ('Remove the availability rules from a calendar') with the resulting state spelled out ('reverting to the default (no buffers, no working-hours mask)'), which clearly sets it apart from get_/set_availability_rules behaviorally. It never names a sibling explicitly, so it lands at 4 rather than 5.

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?

The description implies the use case (reset a calendar's rules back to defaults) and states the failure condition when no rules exist, but gives no explicit when-to-use vs set_availability_rules guidance or prerequisites such as permissions on the calendar. Usage is inferable rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.