Skip to main content
Glama
smurfy92

openclaw-control-mcp

by smurfy92

openclaw_config_patch

Atomically replace the full OpenClaw gateway configuration with optimistic locking, using either a raw JSON and base hash or a convenience merge path and value.

Instructions

Optimistic-locked replace of the FULL gateway config (verified live against 2026.4.12+). Wraps config.patch. Wire format: { raw: string, baseHash: string } where raw is the full config serialized as JSON and baseHash comes from a previous openclaw_config_get call. Pass mergePath + mergeValue for the convenience flow: this tool will fetch the current config, deep-merge your value at the given dotted path, compute the resulting raw JSON, and submit it with the freshly-read baseHash. Destructive — replaces the entire config atomically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNoFull new config as a JSON string. Use this when you've already serialized the new state. Mutually exclusive with mergePath/mergeValue.
baseHashNoHash of the config the patch is based on. Required with `raw`. Get it from openclaw_config_get.
instanceNoOptional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list.
mergePathNoConvenience: dotted path to merge `mergeValue` into. The tool fetches the current config and merges client-side.
mergeValueNoConvenience: object/value to deep-merge at `mergePath`. Any JSON-serializable value — passthrough, no schema enforced.
Behavior4/5

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

With no annotations, the description fully informs about destructive atomic replacement and optimistic locking via base hash. It also mentions the convenience flow's internal fetch-merge-submit steps. Additional details like error handling or permission requirements are absent, but the core behavioral traits are well communicated.

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 a single focused paragraph that front-loads the primary purpose and concisely explains the two modes of operation. Every sentence contributes useful information without excessive verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of 5 parameters and no output schema, the description covers usage patterns and destructive nature but omits return values, error responses, and prerequisites beyond mentioning the baseHash source. This leaves the AI agent needing to infer some aspects.

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?

All 5 parameters are documented in the schema with descriptions, achieving 100% coverage. The description adds context about the two flows (raw/baseHash vs mergePath/mergeValue) and the role of baseHash from a previous get call, but this aligns with schema information. Thus baseline 3 is appropriate.

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 that the tool performs an 'Optimistic-locked replace of the FULL gateway config' and explains both the direct raw+baseHash flow and the convenience mergePath+mergeValue flow. This distinguishes it from sibling config tools like openclaw_config_set (likely partial updates) or openclaw_config_apply (possibly different semantics).

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?

The description provides clear guidance on when to use each flow: the raw+baseHash approach for pre-serialized configs and the mergePath+mergeValue for targeted deep-merges. However, it does not explicitly compare with or exclude other config tools, though the destructive note implies caution.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/smurfy92/openclaw-control-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server