Skip to main content
Glama

Replace all custom instructions

replace_instructions
Destructive

Sets the brand's complete list of custom instructions in one step (at most 5), for reworking the rules as a whole. Entries with an id rewrite that instruction, entries without one are added, and existing instructions missing from the list are removed. An empty list removes all. Returns a diff and any URLs the new rules introduce (replies may link to them).

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": {
      "brand": "<brand>",
      "instructions": "<instructions>"
    },
    "name": "replace_instructions"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYes
instructionsYesThe complete desired list, in order.
confirmationTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: it spells out exactly what gets destroyed (instructions missing from the list are removed, an empty list wipes everything) and how existing entries are matched via id. It also discloses the return payload (a diff plus URLs introduced by new rules) and that URLs become links usable in replies, which is real behavioral context an agent cannot get from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, front-loaded with the destructive whole-list semantics before the per-entry rules and the return shape. No filler; even the trailing parenthetical about links in replies carries actionable information.

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

Completeness4/5

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

With no output schema, the description usefully covers what is returned (diff and introduced URLs), and it fully explains the destructive replace semantics. It falls short on the unexplained confirmationToken and on any permission or irreversibility note that an agent invoking a destructive replace would want.

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 only 33%, and the description compensates strongly for the array parameter by explaining add/rewrite/remove semantics per entry and the empty-list case. The gap is confirmationToken, which is a required-ish safety parameter for a destructive operation yet is never mentioned in the description.

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?

States a specific verb and resource ('Sets the brand's complete list of custom instructions') plus scope ('in one step (at most 5), for reworking the rules as a whole'). The whole-list framing implicitly separates it from per-item siblings such as delete_instruction, so an agent can tell which tool handles bulk rework versus single edits.

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?

'For reworking the rules as a whole' gives a clear condition that selects this tool over incremental editing, and the 'at most 5' cap sets a practical boundary. However, it never names an alternative for single-instruction changes or states a when-not case, so the agent must infer the routing.

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.

Resources