Skip to main content
Glama

Update Phone Flow

update_phone_flow
DestructiveIdempotent

Replace how calls ring on the business's hosted phone system with a full phone flow: { version: 1, hours: { mode: 'always' | 'business_hours', afterHours: 'kai' }, ring: { members: [{ kind: 'cell', phone: E.164, label, requirePressOne } | { kind: 'desk_phone' | 'user', userId, label }], timeoutSeconds: 5-120 }, overflow: 'kai' }. Applied idempotently (only real differences are written); every member passes the forwarding-loop guard; business_hours mode derives the schedule from the business hours already on file. Read the current flow with get_phone_flow first and send it back with your edits. Mirrors POST /api/v1/phone-system action=save_flow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowYesThe complete phone flow to apply.
business_idNoBusiness ID (required when the token can access multiple businesses).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowNo
errorNoPresent when success is false
changesNo
successYesWhether the tool completed successfully
readbackNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond annotations (idempotentHint, destructiveHint), the description adds concrete behavioral details: idempotent application ('only real differences are written'), the forwarding-loop guard, and the business_hours derivation. These are useful and go beyond what annotations state. No contradiction with annotations; the destructiveHint aligns with 'Replace'.

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?

The description is long but every sentence carries necessary content: purpose, schema example, behavioral notes, usage prerequisite, and API reference. It is front-loaded with the purpose and structured logically. While dense, there is no filler or repetition.

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 the complex nested 'flow' object, the description covers the full structure, idempotency behavior, guard, business hours derivation, and the prerequisite read-write pattern. An output schema exists, so return value details are not needed. It omits error cases or edge conditions but is sufficient for an agent to use it correctly.

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

Parameters5/5

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

The schema only describes 'flow' as 'The complete phone flow to apply' with no structure. The description compensates fully by specifying the exact JSON shape, including version, hours mode, afterHours, ring members (with kind, phone, label, requirePressOne), timeoutSeconds range, overflow, and the enums for hours.mode. This is essential semantics not present in the schema.

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 clearly states a specific action ('Replace how calls ring') on a specific resource ('the business's hosted phone system') with a full phone flow. It distinguishes itself from the sibling 'get_phone_flow' by explicitly referencing it as the read counterpart, and the API mirror adds further precision.

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?

It gives an explicit prerequisite: 'Read the current flow with get_phone_flow first and send it back with your edits.' This is a clear usage guideline for the correct sequence, though it does not enumerate situations where the tool should not be used (e.g., when a simpler update is needed). The guidance is adequate for distinguishing from read operations.

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.