Skip to main content
Glama

Set open hours

set_open_hours
DestructiveIdempotent

Replace the workspace's weekly open hours, in its time zone. They decide when calls and texts are handled as after hours. Send every open day; a day left out is closed. Admins only. Ask the user to confirm before calling this tool.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_open_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
fridayNoThis day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day
mondayNoThis day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day
sundayNoThis day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day
tuesdayNoThis day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day
saturdayNoThis day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day
thursdayNoThis day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day
wednesdayNoThis day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedInput schema / properties / friday / description
      Added value: +"This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
    • addedInput schema / properties / friday / properties / open / description
      Added value: +"false closes the day"
    • addedInput schema / properties / monday / description
      Added value: +"This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
    • addedInput schema / properties / monday / properties / open / description
      Added value: +"false closes the day"
    • addedInput schema / properties / saturday / description
      Added value: +"This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
    • addedInput schema / properties / saturday / properties / open / description
      Added value: +"false closes the day"
    • addedInput schema / properties / sunday / description
      Added value: +"This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
    • addedInput schema / properties / sunday / properties / open / description
      Added value: +"false closes the day"
    • addedInput schema / properties / thursday / description
      Added value: +"This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
    • addedInput schema / properties / thursday / properties / open / description
      Added value: +"false closes the day"
    • addedInput schema / properties / tuesday / description
      Added value: +"This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
    • addedInput schema / properties / tuesday / properties / open / description
      Added value: +"false closes the day"
    • addedInput schema / properties / wednesday / description
      Added value: +"This day's hours: open with start_time and end_time (24-hour HH:MM); leave out to close the day"
    • addedInput schema / properties / wednesday / properties / open / description
      Added value: +"false closes the day"
    • 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.1/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, and the description adds the context those hints lack: the operation is a full replacement (not a patch), omitted days become closed, the schedule is interpreted in the workspace's time zone, admin permission is required, and the agent should obtain user confirmation first. None of this restates the annotations; it explains what destruction actually looks like and what the agent must do before invoking.

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?

Five short sentences, front-loaded with the action and scope, then the replacement rule, then the downstream effect, then the two operational constraints. Nothing is repeated from the schema and no sentence is filler.

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?

For a destructive, nested, eight-parameter write with no output schema and no enums, the description covers replacement semantics, time-zone interpretation, authorization, and the confirmation gate, which is what an agent needs to call it safely. Remaining gaps are minor: it does not say whether the call returns the resulting schedule or how errors for conflicting start/end times are reported, though the output-schema absence means return values needn't be spelled out.

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% and each day object already documents open/start_time/end_time (HH:MM) plus the leave-out-to-close rule, and workspace_id carries a full usage note. The description reinforces the all-days re-send rule from the outside, which is mildly useful, but adds no time-format, ordering, or defaulting detail beyond the schema. Baseline 3 applies.

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?

"Replace the workspace's weekly open hours, in its time zone" states a specific verb (replace), a specific resource (weekly open hours) and its scope (workspace, workspace time zone), plus the downstream effect on after-hours handling for calls and texts. That is enough for an agent to know it is configuring business hours rather than booking hours or knowledge. It stops short of naming the closest siblings (create_booking_hours, set_booking_option_hours) or how this differs from them.

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?

Gives concrete operating rules: send every open day, an omitted day is closed, admins only, and confirm with the user before calling. These are real when/how-to-call constraints that prevent the most common failure (a partial payload silently closing days). No explicit statement of when to prefer this over sibling hours-setting tools, 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