Skip to main content
Glama

set_opening_hours

Idempotent

Replace a merchant store's entire weekly opening hours by submitting a full shift schedule; omitted days are removed.

Instructions

Replace a merchant's ENTIRE weekly schedule (days not sent are removed).

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": {
      "merchant_id": "<merchant_id>",
      "storeId": "<storeId>",
      "shifts": "<shifts>"
    },
    "name": "set_opening_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
shiftsYesFull weekly shift list — replaces all existing hours.
storeIdYesStore ID for the schedule payload.
merchant_idYesMerchant ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior2/5

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

The description usefully discloses the full-replacement, data-removing behavior that goes beyond the annotations. But that disclosure sits in tension with destructiveHint=false, which per MCP semantics implies only additive updates, and nothing is said about required permissions, validation failures, or what happens when storeId is unknown.

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?

A single sentence with the destructive consequence front-loaded in parentheses; no filler, and the most important constraint is placed where it will be read first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with no output schema and full schema coverage, the description is workable, but it describes the target as the merchant's entire schedule while the schema requires a storeId, leaving the actual scope (merchant-wide vs per-store) ambiguous. Prerequisites and failure modes are also unaddressed.

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 all three parameters, including the nested shift fields and the 'replaces all existing hours' array note, are already documented. The description adds no parameter-level meaning beyond restating the replace semantics, so the 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?

The description names a specific verb ('Replace') and resource ('weekly schedule') and scopes it to the merchant, with the emphasis on ENTIRE making the replace-all semantics unmistakable. It implicitly contrasts with get_opening_hours but never names an alternative tool explicitly.

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

Usage Guidelines3/5

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

One critical usage caveat is given: days not sent are removed, which tells the agent it must send the complete week. However, there is no explicit guidance on when to use this versus reading hours, no prerequisite or permission context, and no mention of how to make a partial edit.

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