Skip to main content
Glama

CallMCP — Phone Call MCP Server

Set Business Hours

set_business_hours
DestructiveIdempotent

Change the business's opening hours, timezone, or one-off closed dates ("we're closed Friday the 27th"). Same change as the dashboard's hours page, admin role required. Only the days you pass change; every other day keeps what it had. A day is { open: 'HH:MM', close: 'HH:MM' } in 24-hour time, or { closed: true }. closed_dates adds dates the business is shut; reopen_dates removes them. Call routing that follows business hours uses the new hours from the next call. Returns the saved week as read back.

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_business_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNoDays to change, keyed monday..sunday. Example: { saturday: { open: '09:00', close: '13:00' }, sunday: { closed: true } }.
timezoneNoIANA timezone, e.g. America/Chicago (optional).
business_idNoThe business. Required when the account has more than one.
closed_datesNoDates the business is closed, e.g. [{ date: "2026-11-27", name: "Thanksgiving" }].
reopen_datesNoClosed dates to remove (YYYY-MM-DD).

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when success is false
successYesWhether the tool completed successfully
holidaysNo
timezoneNo
business_idNo
changed_daysNo
business_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only flag this as a destructive, idempotent, non-open-world write; the description adds the auth requirement, the partial-merge behavior that determines what gets overwritten, the per-day data shape, the add-vs-remove semantics of closed_dates and reopen_dates, and the fact that routing changes from the next call. It also describes the return ('the saved week as read back'). That is substantive behavior beyond the structured fields, and it does not contradict the destructive hint.

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?

The definition is front-loaded with the purpose, then the auth requirement, the merge rule, the value shape, and the return, in the order an agent needs them. Every sentence carries distinct information, and the parenthetical example and quoted date make the constraint concrete without padding.

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?

This is a five-parameter nested-object mutation, and the definition covers the pieces that matter: auth, overwrite semantics, nested value format, list add and remove behavior, and when the change takes effect. Since an output schema exists, the brief return note is sufficient, and nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3; the description earns above that by restating the day object as { open, close } or { closed: true } in 24-hour time and clarifying that closed_dates adds while reopen_dates removes, which is not obvious from names alone. It adds no guidance on business_id or timezone beyond the schema, so a 5 is not warranted.

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?

A specific verb plus a precisely enumerated resource ('opening hours, timezone, or one-off closed dates'), reinforced by a concrete example ('we're closed Friday the 27th') and a dashboard analogue. Nothing about it could be confused with the setup or rules siblings; the scope is unmistakable. Differentiation is implicit in the resource breadth rather than by naming a sibling, but the definition still lets an agent route correctly.

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 an explicit prerequisite ('admin role required') and a clear merge condition ('Only the days you pass change; every other day keeps what it had'), which tells the agent how to safely make partial updates. It also states that call routing picks up the new hours from the next call, which is the timing context an agent needs. It never says when to prefer another tool (e.g. set_up_business) or when not to use it, so it stops short of 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.