Skip to main content
Glama
brotato-controller

brotato-controller

by dzhen1515

manage_extensions

Discover, validate, create, hot-update, roll back, or run schema-validated AI extensions for Brotato, including strategy, patch, profile, behavior, and macro kinds.

Instructions

    Discover, inspect, create, hot-update, delete, rollback, or run AI extensions under state_dir/extensions/.
    START HERE: action="schema" (kind optional) returns every kind, hook, condition variable/function,
    limit and a ready-to-edit template, so you never need to guess formats.
    - action: schema | validate | list | get | upsert | delete | rollback | run
    - kind: strategy | patch | profile | behavior (combat/shop/upgrade/item_box/reroll/lock/death hooks) | macro
    - run (kind=macro): payload={"state"?: snapshot, "character_id"?: str, "execute"?: bool}; execute=False
      (default) only plans writes; execute=True drives the live game and requires no active runner.
    All writes are schema + whitelist-AST validated, atomic, versioned, and allowed while runner is active.
    

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": {
      "action": "<action>"
    },
    "name": "manage_extensions"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
nameNo
stepsNo
actionYes
dry_runNo
payloadNo
expect_baseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.5

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that all writes are schema plus whitelist-AST validated, atomic, versioned, and safe to perform while the runner is active — meaningful behavioral guarantees for a mutating multi-action tool. It also explains that execute=False plans writes only, which is real behavioral context. Minor tension: delete/rollback actions sit alongside destructiveHint=false, though versioning plausibly makes those recoverable.

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?

Front-loaded with purpose, then a clear START HERE directive, then compact bullet lists for action and kind, then a scoped note on the macro payload. Dense but every line carries information; the inline JSON payload notation is terse but readable.

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?

For a seven-parameter, eight-action tool with no output schema, the description covers purpose, enums, and write safety well but leaves the dry_run and expect_base semantics and the return shape of list/get unspecified. An agent could invoke it, but not confidently predict dry-run behavior or concurrency conflicts.

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 carries the burden, and it does supply the full action enum (schema | validate | list | get | upsert | delete | rollback | run) and kind enum, plus the payload shape for macro runs — high-value additions the schema lacks. However, three parameters (steps, dry_run, expect_base) receive no explanation at all, and dry_run defaulting to true is a consequential behavior an agent could easily miss.

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 opening sentence names a specific resource (AI extensions under state_dir/extensions/) and enumerates the concrete operations: discover, inspect, create, hot-update, delete, rollback, run. The action and kind lists make the tool's scope unambiguous and separable from strategy-oriented siblings such as update_strategy or rollback_strategy.

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?

"START HERE: action=\"schema\"" gives explicit first-call guidance and explains why (it returns every kind, hook, condition, limit and a template). It also clarifies the execute=False vs execute=True distinction for macro runs. It stops short of naming when to prefer a sibling tool over this one, but the when-to-use context is clear.

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