Skip to main content
Glama

Rollback Agent Configuration

rollback_config
DestructiveIdempotent

Request a rollback to a prior assistant_config_versions snapshot. This changes live greeting, voice, prompt and model settings. When the business owner or an admin is signed in through this connector, the rollback applies immediately; otherwise authenticated owner review of the exact stored request is required (the owner is notified with a review link). Caller-supplied authority fields never authorize execution. Discover a target with list_config_versions or get_change_history; relay the pending request's review URL. The agent.config.rollback executor preserves version recording and secret exclusion after trusted approval.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actorNoWho is asking: { type: agent|human|system|integration, id, display_name }.
reasonNoOptional human-readable reason recorded in the audit trail.
dry_runNoValidate tenant, scope, and policy without touching the live config.
agent_idYesAgent ID to roll back.
authorityNoAttribution only. Caller-supplied modes cannot authorize a rollback; authenticated owner review of the exact stored request is required.
source_refNoExternal source reference, such as a ticket or automation run ID.
version_idNoTarget assistant_config_versions row id to restore. One of version_number/version_id is required.
business_idNoBusiness ID (optional only when the token can access exactly one business).
version_numberNoTarget assistant_config_versions.version_number to restore. One of version_number/version_id is required.
idempotency_keyNoStable key for the rollback request; repeating it returns the original outcome. Defaults to a key derived from agent + version — pass a fresh key to repeat a rollback that already executed.
queue_for_approvalNoCreate a durable owner-review request (default true). Setting false returns needs_approval, but an authority-envelope retry still cannot execute.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
errorNoPresent when success is false
resultNoOn executed: { agent_id, restored_from_version, restored_fields, skipped_fields, new_version_number, warning? }.
statusNo
messageNo
successYesWhether the tool completed successfully
summaryNo
agent_idNo
approvalNo
request_idNo
risk_levelNo
business_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / authority / description
      Previous value: -"How the rollback was authorized: { mode, confirmed_by, confirmed_at, confirmation_ref }. human_confirmed requires all three confirmation fields; anything weaker returns pending_approval."New value: +"Attribution only. Caller-supplied modes cannot authorize a rollback; authenticated owner review of the exact stored request is required."
    • changedInput schema / properties / queue_for_approval / description
      Previous value: -"When authority is insufficient, create a durable dashboard approval (default true). Set false to get needs_approval and retry yourself with the same idempotency_key once a human confirms."New value: +"Create a durable owner-review request (default true). Setting false returns needs_approval, but an authority-envelope retry still cannot execute."
  2. Changed21 schema fields changed
    • addedInput schema / properties / actor
      Added value: +{
      +  "description": "Who is asking: { type: agent|human|system|integration, id, display_name }.",
      +  "type": "object"
      +}
    • addedInput schema / properties / authority
      Added value: +{
      +  "description": "How the rollback was authorized: { mode, confirmed_by, confirmed_at, confirmation_ref }. human_confirmed requires all three confirmation fields; anything weaker returns pending_approval.",
      +  "type": "object"
      +}
    • addedInput schema / properties / business_id
      Added value: +{
      +  "description": "Business ID (optional only when the token can access exactly one business).",
      +  "type": "string"
      +}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Validate tenant, scope, and policy without touching the live config.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Stable key for the rollback request; repeating it returns the original outcome. Defaults to a key derived from agent + version — pass a fresh key to repeat a rollback that already executed.",
      +  "type": "string"
      +}
    • addedInput schema / properties / queue_for_approval
      Added value: +{
      +  "description": "When authority is insufficient, create a durable dashboard approval (default true). Set false to get needs_approval and retry yourself with the same idempotency_key once a human confirms.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / source_ref
      Added value: +{
      +  "description": "External source reference, such as a ticket or automation run ID.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / approval
      Added value: +{
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / business_id
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / code
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / new_version_number
      Removed value: -{
      -  "type": [
      -    "integer",
      -    "null"
      -  ]
      -}
    • addedOutput schema / properties / request_id
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / restored_fields
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / restored_from_version
      Removed value: -{
      -  "type": "integer"
      -}
    • addedOutput schema / properties / result
      Added value: +{
      +  "description": "On executed: { agent_id, restored_from_version, restored_fields, skipped_fields, new_version_number, warning? }.",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / risk_level
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / skipped_fields
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / status
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / warning
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations marking this destructive and idempotent, the description discloses immediate vs. owner-review execution, notification with review link, that caller-supplied authority never authorizes, and that version recording and secret exclusion are preserved. This is rich behavioral context that directly affects invocation expectations.

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 longer than average, but every sentence carries decision-relevant information: effect, auth path, discovery, and post-approval guarantees. It is front-loaded with the core purpose and only includes dense security details that an agent needs before invoking a destructive rollback.

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?

Given 11 parameters, nested objects, destructive behavior, an output schema, and the surrounding toolset, the description covers the essential operational context: target discovery, approval flow, security constraints, and live-config impact. It leaves no major gap for an agent deciding whether and how to call this tool.

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 explains all parameters in detail. The description reinforces the authority limitation and discovery workflow but does not materially add new parameter-level meaning beyond structured data, matching the baseline for fully covered schemas.

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 opens with a specific verb and resource: 'Request a rollback to a prior assistant_config_versions snapshot.' It clearly states what changes (live greeting, voice, prompt, model settings) and references the exact sibling tools for discovery, distinguishing itself from list_config_versions, get_change_history, and update_agent_config.

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 concrete routing guidance: discover a target with list_config_versions or get_change_history, relay the review URL, and it explains the auth-dependent execution path. It stops short of explicitly contrasting with update_agent_config for non-rollback edits, but the rollback-versus-discovery context is clear enough for an agent to pick this tool correctly.

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.