Skip to main content
Glama

Create booking hours

create_booking_hours

Create a booking-hours schedule with weekly hours and any closed dates. It does nothing until a booking option uses it (set_booking_option_hours). Returns the new schedule with its id. Needs an admin, or a role allowed to change this.

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": {
      "name": "<name>",
      "time_zone": "<time_zone>"
    },
    "name": "create_booking_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA name the team will recognize, e.g. Test drive hours
time_zoneYesIANA time zone the hours are in, e.g. America/Chicago
weekly_hoursNoRegular weekly hours; add several entries for different days or split shifts
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.
date_overridesNoHolidays and special days; leave the times out to close that whole day

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Act in one of this organization's workspaces (id from list_workspaces or create_workspace). Leave empty to act in the connected organization."New value: +"Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, open-world, non-idempotent mutation, so the safety profile is covered. The description adds genuinely non-derivable behavior: the schedule is inert until attached, the call returns the new schedule with its id, and an admin-level role is required. It does not mention rate limits or conflict behavior for overlapping schedules, which keeps it below a 5.

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?

Three short sentences, each carrying distinct information: what is created, what it is useless for until linked, what is returned, and who may call it. The core purpose is front-loaded and no sentence repeats structured data.

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 5-parameter mutation with full schema coverage and no output schema, the description supplies the return shape, the activation dependency, and the authorization requirement. An agent has everything needed to decide to call it and what to do next.

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 names, time zones, weekly_hours entries, workspace_id resolution, and date_overrides are all documented in the schema itself. The description's 'weekly hours and any closed dates' merely mirrors the two array parameters without adding format or interaction detail. Baseline 3 is appropriate.

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+resource ('Create a booking-hours schedule') and immediately scopes what the resource contains: weekly hours and closed dates. It also names the sibling (set_booking_option_hours) that gives the schedule meaning, so an agent can distinguish creation from activation without opening another schema.

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

Usage Guidelines4/5

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

The sentence 'It does nothing until a booking option uses it (set_booking_option_hours)' tells the agent both the lifecycle context and the follow-up tool to pair with this one. It also states the permission prerequisite (admin or a role allowed to change this). It stops short of explicit when-not-to-use guidance or contrasting itself with update_booking_hours.

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.

Resources