Skip to main content
Glama
brotato-controller

brotato-controller

by dzhen1515

update_strategy

Dry-run or apply a validated strategy override under state_dir using an expect_base optimistic lock to prevent conflicting updates during long-running Brotato sessions.

Instructions

Dry-run or apply (with expect_base optimistic lock) a validated strategy override under state_dir.

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": {
      "character_id": "<character_id>",
      "patch": "<patch>"
    },
    "name": "update_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYes
dry_runNo
expect_baseNo
character_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.5

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare that this is a non-read, non-destructive write; the description adds substantive runtime behavior beyond that by disclosing the expect_base optimistic-lock check and the dry-run/apply duality. It still does not say what happens on a lock mismatch (error vs. overwrite) or whether state_dir must exist first.

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?

A single dense sentence with no redundant restatement of the name or title; the dry-run/apply distinction and locking guarantee are front-loaded. The compactness comes at slight cost of clarity around 'under state_dir'.

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

Completeness2/5

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

For a mutation tool with a free-form nested patch object, no output schema, and zero schema descriptions, the definition leaves important things unsaid: the shape of patch, conflict behavior on lock failure, and what state_dir refers to. What is present is accurate but insufficient for confident invocation.

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 coverage is 0%, so the description must carry the load, and it does explain the two highest-value parameters: dry_run and expect_base as an optimistic lock. It says nothing about character_id's role or the keys expected inside the free-form nested patch object, leaving half the surface undocumented.

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 pair (dry-run or apply) and the resource (a validated strategy override), which distinguishes it from get_strategy (read) and rollback_strategy (revert). The trailing 'under state_dir' is unexplained jargon, but the core action is unambiguous.

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?

Implies the intended workflow (dry_run defaults to true, so callers preview then apply) and notes the patch must be 'validated'. It gives no explicit when-not guidance, no mention of when to prefer rollback_strategy, and no stated prerequisites such as a prior get_strategy call to obtain the base.

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