Skip to main content
Glama

The-Y CRM

Set phone hours

set_phone_hours
Destructive

Sets when the phone is "open" and where calls go during and outside those times (e.g. open → ring group, closed → voicemail). Without phone_hours_id a new time control is created.

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": {
      "ranges": "<ranges>",
      "open_destination": "<open_destination>",
      "closed_destination": "<closed_destination>"
    },
    "name": "set_phone_hours"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName, e.g. Opening hours
rangesYesTimes in which "open" applies
phone_hours_idNoID of the phone hours to change (from get_phone_setup); empty = create new
open_destinationYesDestination during the times
closed_destinationYesDestination outside the times

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, idempotentHint=false, and readOnlyHint=false; the description adds meaningful context by revealing that omitting phone_hours_id creates a new time control on each call, which explains the non-idempotent risk. It does not disclose whether an update replaces the existing ranges and destinations wholesale, nor whether existing configuration is destroyed — the key concern for a destructive mutation.

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?

Two sentences, front-loaded with the core effect, with the create/update clause last where it belongs. The parenthetical example is compact and informative rather than padding; nothing is wasted.

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?

Given a 5-parameter tool with nested destination objects and full schema coverage, the description covers purpose, creation semantics, and where the ID comes from — enough to invoke it correctly, and no output schema exists to explain. What is missing is the update-overwrite behavior and range validation, which matters for a destructive tool. Scoring 4 reflects a small but real gap rather than a fundamental one.

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 the schema already documents ranges, destinations, and the phone_hours_id empty-equals-create rule. The description's mention of the ID semantics largely restates the schema and adds no format, constraint, or ordering detail (e.g. max 14 ranges, overlap rules). Baseline 3 is appropriate.

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+resource (setting phone 'open' hours) and explains the two-part outcome: routing during and outside the ranges, with concrete examples (ring group vs voicemail). It also names the create-vs-update distinction. It stops short of explicitly contrasting with siblings like set_number_destination, though the time-condition framing mostly does that implicitly.

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?

"Without phone_hours_id a new time control is created" plus "from get_phone_setup" gives genuine create-vs-update guidance and points to the discovery tool. However there is no explicit when-to-use/when-not, no prerequisite or permission guidance, and no statement about whether this should be preferred over set_number_destination for plain routing.

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.