Skip to main content
Glama

Rewrite the agent's context

update_playbook_rule
DestructiveIdempotent

Replace the whole context document the AI agent reads before every answer (read it first with get_training_overview, and keep what should stay). Markdown, up to 40,000 characters. Admins only.

Input Schema

NameRequiredDescriptionDefault
contentYesThe whole new context, in Markdown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / content / description
      Previous value: -"The new text of the rule."New value: +"The whole new context, in Markdown."
    • removedInput schema / properties / productId
      Removed value: -{
      -  "description": "Product id from list_products.",
      -  "type": "string"
      -}
    • removedInput schema / properties / ruleId
      Removed value: -{
      -  "description": "The rule id from get_training_overview.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "ruleId",
      -  "productId",
      -  "content"
      -]New value: +[
      +  "content"
      +]
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes further: it explains that the entire document is replaced (so unstated content is lost) and warns to preserve what should stay. It also discloses the 40,000-character limit and the admin-only authorization requirement, which annotations cannot express.

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?

Two compact sentences. The destructive replacement action is front-loaded, followed by the prerequisite and the size limit, with no filler.

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?

For a one-parameter tool with no output schema, the description covers the action, the workflow prerequisite, the format/size constraint, and the permission requirement — everything needed to call it correctly without risk of silent data loss.

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?

Single parameter with 100% schema coverage, so baseline is 3; the description adds real constraint by specifying the format (Markdown) and the 40,000-character ceiling, which the schema does not state. Minor gap: no mention of what happens if the limit is exceeded.

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 ('Replace the whole context document the AI agent reads before every answer'), which distinguishes it from siblings like add_playbook_rule and update_agent. The scope word 'whole' makes the replacement semantics unambiguous.

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?

Explicitly sequences the workflow ('read it first with get_training_overview, and keep what should stay') and states the access precondition ('Admins only'). It stops short of naming add_playbook_rule as the alternative for partial/rule-level edits, so the when-not half is implicit.

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