Skip to main content
Glama
Centrex: MCP server for Genesys Cloud

Centrex: MCP server for Genesys Cloud

Apply a plan (human gate)

apply

Run a pending write plan by planId after human approval. Refuses if the resource changed or is gone, then writes, re-reads to confirm, and logs the result.

Instructions

The second step of a write, and the human gate: runs one pending plan by its planId. Re-reads the resource and refuses when a field the plan touches (or its version) changed since the plan or the resource is gone; otherwise writes, re-reads to confirm, appends a record to the org's apply log and returns the confirmed state. A plan is applied once. Call it only after the human has seen the plan: the client's permission prompt on this tool is how the human approves the write, so this tool must never be allow-listed. Refused in read-only mode.

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": {
      "planId": "<planId>"
    },
    "name": "apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYesThe planId that plan returned.
secretsNoOnly when the plan lists secretFields: the value of each, by its dotted path ({"body.apiKey": "..."}). The plan file keeps them redacted; they are sent with the write and never saved or logged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the re-read-and-refuse conflict check, that a missing resource is rejected, that the write is followed by a confirming re-read, the apply-log side effect, and the returned value. It also conveys idempotency ('A plan is applied once') and a permissions/human-approval constraint, which are exactly the traits an agent must know before a 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?

The critical framing ('second step of a write, and the human gate') is front-loaded before the mechanics. The remainder is dense but nearly every clause carries a distinct behavior; the semicolon-chained sentences make it slightly harder to scan than it could be, but there is no filler.

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?

For a two-parameter mutation tool with no output schema and no annotations, this covers what matters: preconditions, conflict handling, side effects, idempotency, failure mode in read-only environments, and the shape of the returned confirmed state. An agent has enough to invoke it correctly and to know when not to.

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 100%, so both parameters are already documented in structured form. The description reinforces that planId must come from the plan tool and ties the write path to the plan's secretFields, adding a little operational meaning (secrets are sent with the write, never saved or logged) beyond the schema text, though most of that is already in the parameter descriptions.

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 states a specific verb and resource ('runs one pending plan by its planId') and frames it precisely as 'the second step of a write, and the human gate,' which separates it from the planning step and from read-only siblings. An agent can identify this as the commit step without inspecting any other tool.

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?

Explicit preconditions and exclusions: 'Call it only after the human has seen the plan,' 'must never be allow-listed,' and 'Refused in read-only mode.' It also names the sequencing dependency on the earlier plan step, leaving nothing to inference about when this tool fires.

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

Deploy Server

Other Tools