Skip to main content
Glama

block_time

Destructive

Blocks a barber's calendar for a time window so no one can book it, without changing existing appointments; remove the block to undo.

Instructions

Block a barber's calendar for a time window. Blocks the window so no one can book it and returns the block. It does not touch existing bookings: check list_appointments first. Undo it with remove_block.

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": {
      "barber_id": "<barber_id>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "block_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesEnd, YYYY-MM-DDTHH:MM:SS.
startYesStart, YYYY-MM-DDTHH:MM:SS.
barber_idYesBarber id from list_barbers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations flag destructiveHint=true and readOnlyHint=false, and the description meaningfully sharpens that scary profile by stating existing bookings are untouched and that the call returns the block, plus the reversal route. It stops short of rich operational context such as what happens on overlapping blocks, but it adds real value beyond the annotations.

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 action, then the side effect, then the precondition, then the undo. Every sentence earns its place with no repetition of schema or annotation content.

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?

With no output schema, 'returns the block' at least signals a payload exists, and the scoping of effects and the reversal are covered. What the returned block contains is not described, leaving a minor gap for a mutation tool.

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% (barber_id from list_barbers, start/end as YYYY-MM-DDTHH:MM:SS), so the schema already carries the parameter burden. The description adds no extra formatting, timezone, or ordering guidance beyond it, which is the baseline case.

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 ('Block a barber's calendar for a time window') and names the inverse sibling remove_block, so an agent can distinguish it from create_appointment, cancel_appointment, and remove_block 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 Guidelines5/5

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

Gives a concrete precondition ('check list_appointments first') and an explicit undo path ('Undo it with remove_block'), plus the outcome that selects this tool (no one can book the window). Nothing about when to use or how to reverse it is left to inference.

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