Skip to main content
Glama

Set a booking option's hours

set_booking_option_hours
Idempotent

Choose which booking hours a booking option follows, or null to use its hosts' own availability. Changes when customers can book it right away. Ids come from list_booking_options and list_booking_hours. 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": {
      "booking_option_id": "<booking_option_id>",
      "booking_hours_id": "<booking_hours_id>"
    },
    "name": "set_booking_option_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
booking_hours_idYesBooking hours id from list_booking_hours, or null to use the hosts' own availability
booking_option_idYesBooking option id from list_booking_options

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / booking_hours_id / description
      Added value: +"Booking hours id from list_booking_hours, or null to use the hosts' own availability"
    • 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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is covered structurally. The description adds real value beyond that: the change takes effect immediately on customer booking and requires an admin or an authorized role. It still says nothing about what happens to a previously assigned hours set or whether existing bookings are affected.

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?

Four short sentences, front-loaded with the core effect before the id sources and the permission requirement. Minor overlap between the description's id-source sentence and the schema's parameter descriptions keeps it from a 5.

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?

A 3-parameter mutation tool with full schema coverage and annotations; the description covers effect, null semantics, id provenance, and authorization. Return behavior is the only unaddressed item, and that is a minor gap given the mutation is idempotent and non-destructive.

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 workspace_id and the nullable booking_hours_id is already documented in the schema, and the description largely restates those pointers. Baseline 3 is appropriate when the schema carries the semantics.

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?

States a specific verb (set/choose) and resource (which booking hours a booking option follows), plus the null case. It does not explicitly distinguish itself from sibling mutators such as set_open_hours or update_booking_hours, but the object being modified is unambiguous.

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?

"Choose which booking hours a booking option follows, or null to use its hosts' own availability" frames the decision the agent is making, and "Ids come from list_booking_options and list_booking_hours" routes to the correct prerequisite tools. No explicit when-not/exclusion against sibling setters, which keeps it from a 5.

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