Skip to main content
Glama

Prepare an hours update

update_hours

Stage opening hours for a location belonging to the signed-in merchant. With days, only those days change and the rest keep their current hours; without it, the whole week is replaced. Returns intent, expires_at and consequence describing the full week, including closed days. Requires company:write; confirm_update_hours applies it after approval.

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": {
      "location_id": "<location_id>",
      "hours": "<hours>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "update_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
hoursYes
location_idYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / days
      Added value: +{
      +  "items": {
      +    "maximum": 6,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "maxItems": 7,
      +  "minItems": 1,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (which only say not read-only, not destructive, not idempotent, closed-world), the description discloses that this call stages rather than applies, that it requires company:write, that the result carries intent, expires_at and a consequence describing the full week including closed days. The whole-week replacement is a meaningful side effect the annotations alone would not convey. It does not address why an idempotency_key is required while idempotentHint is false, nor what happens on a repeated key.

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?

Four tight clauses, front-loaded with what the tool does and immediately followed by the days/no-days branching rule. No restatement of the title and no filler; each sentence contributes either scope, behavior, or routing information.

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?

With no output schema, the description usefully enumerates the return fields (intent, expires_at, consequence) and explains the staged-then-confirmed lifecycle, which is what an agent most needs here. The remaining gap is input-side: time-format expectations and idempotency_key handling are undocumented for a tool whose payload is entirely structured time data.

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 0%, so the description carries the burden, and it only explains the semantics of 'days' (partial patch vs full replace). The 'hours' array — dow indexing, open/close time string format, multiple entries per day up to 50 items, and how closed days are expressed — is left entirely to inference, as are location_id and idempotency_key.

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?

The description gives a specific verb and resource ('Stage opening hours for a location') plus the account scope ('belonging to the signed-in merchant'), and explicitly frames it as a preparation step routed through confirm_update_hours. An agent can distinguish it from the confirm_* sibling and from update_company_profile without reading any schema.

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

Usage Guidelines5/5

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

It states the branch condition precisely: with 'days' only those days change, without it the whole week is replaced — which is exactly the decision an agent must make before calling. It also names the follow-up tool (confirm_update_hours) and the approval step, so the two-phase flow is unambiguous.

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