Skip to main content
Glama

batch_patch_content

Destructive

patch_content on multiple keys; all-or-nothing validation. Preferred edit path for pages over 60KB. replace-string value/replace ≤60KB; whole call ≤80KB.

Input Schema

NameRequiredDescriptionDefault
siteYesSite slug, e.g. acme-studio
itemsYes
contextYesOne sentence: why you are calling this tool and what you are trying to accomplish. Stored on the site's activity log and visible to everyone on the site — never put secrets or personal data here.
guestTokenNoGuest token from start_site. Send it on every call until claim_site. Omit when this chat is already signed in to Dotsy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / items / items / properties / ops / items / properties / anchored
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed6 schema fields changed
    • addedInput schema / properties / items / items / properties / ops / items / properties / attrs
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / items / items / properties / ops / items / properties / op / enum
      Previous value: -[
      -  "set-attr",
      -  "remove-attr",
      -  "replace-text",
      -  "remove-node",
      -  "insert-after",
      -  "replace-inner-html",
      -  "replace-outer-html",
      -  "replace-string"
      -]New value: +[
      +  "set-attr",
      +  "remove-attr",
      +  "replace-text",
      +  "remove-node",
      +  "insert-after",
      +  "replace-inner-html",
      +  "replace-outer-html",
      +  "replace-string",
      +  "wrap",
      +  "unwrap",
      +  "move"
      +]
    • addedInput schema / properties / items / items / properties / ops / items / properties / position
      Added value: +{
      +  "enum": [
      +    "before",
      +    "after"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / items / items / properties / ops / items / properties / selectors
      Added value: +{
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / items / items / properties / ops / items / properties / tag
      Added value: +{
      +  "enum": [
      +    "div",
      +    "section",
      +    "footer",
      +    "header",
      +    "article",
      +    "aside"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / items / items / properties / ops / items / properties / target
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description adds genuinely new behavioral facts: all-or-nothing validation across items, and hard limits (replace-string value/replace ≤60KB, whole call ≤80KB). It omits what happens on failure/output.

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?

Three dense fragments, front-loaded with the atomicity guarantee and the routing condition. Telegraphic style saves space but reads slightly clipped; no sentence is wasted.

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 destructive bulk-mutation tool with no output schema, the description covers atomicity and size limits but says nothing about drafts vs published state, permission/guest-token requirements, or how partial failures are reported. Adequate but with clear gaps.

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 description coverage is already 75% and the schema enumerates the full op set and nested item shape. The description adds only the per-value size ceiling for replace-string, leaving the meaning of the 11 op codes and their target fields to the schema.

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?

The description names a specific verb+resource ('patch_content on multiple keys') and states the atomic-validation scope, which distinguishes it from the single-key sibling patch_content. It does not, however, contrast itself with bulk_put_content, which is a near-neighbor an agent could confuse it with.

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?

'Preferred edit path for pages over 60KB' gives a concrete size-based condition for choosing this tool over the single-key patch path. It stops short of naming the alternative or stating when-not-to-use (e.g. small pages, or bulk_put_content for whole-key writes).

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