Skip to main content
Glama

Patch part of a drop

dropyour_patch

Replace ONE literal anchor in the SERVED content without re-uploading everything — the Edit semantics you already know. old = the exact literal text to find; new = its replacement; occurrences (default 1) = how many times old must appear: if the real count differs, NOTHING is replaced and the refusal tells you the real count (widen the anchor, or declare the real count to replace all). Graduated apps: path selects the file of the SERVED version (default index.html); pass expectedVersion (from list_versions) and the patch is refused if the served version moved since your read — no blind overwrite. Each patch creates a normal FULL version: rollback works as always. Tiers 1-3: single-file drops only (a multi-file site is replaced whole); the patch goes through the ENTIRE replace pipeline — scan included, on the RESULTING document, never the fragment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newYes
oldYes
pathNo
dropIdYes
occurrencesNo
expectedVersionNo
managementTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say idempotentHint=false and destructiveHint=false. The description goes much further: it reveals that a mismatch in occurrence count aborts the patch with a refusal containing the real count, that expectedVersion prevents blind overwrites, that every patch creates a full version with normal rollback, and that scans run on the resulting document, not the fragment. This is substantial behavioral disclosure beyond the annotations.

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?

The description is dense but every sentence carries a distinct operational fact. It front-loads the core purpose and then adds failure semantics, versioning, and tier constraints in a logical order. It is long, but the complexity of the tool justifies it; it could be slightly better organized with explicit section breaks.

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?

For a tool with no output schema and low annotation coverage, the description covers the key decision-relevant context: when aborts happen, how version safety works, what the rollback story is, and tier limitations. It does not describe the success response shape or the managementToken requirement, but the most critical behavioral context is present.

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 0%, so the description must carry parameter meaning. It explains old (exact literal), new (replacement), occurrences (required count and abort behavior), path (file selection on served version with default), and expectedVersion (version guard sourced from list_versions). Only dropId and managementToken are left to inference, and those are less ambiguous.

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 description opens with a precise verb and object: 'Replace ONE literal anchor in the SERVED content without re-uploading everything.' It clearly identifies the resource (served content of a drop) and the operation (literal find-and-replace), and distinguishes it from a full re-upload/replace. The title 'Patch part of a drop' reinforces this.

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?

It states when to use the tool (single literal anchor, avoiding full re-upload) and gives an explicit exclusion: 'Tiers 1-3: single-file drops only (a multi-file site is replaced whole).' It also references the replace pipeline and list_versions for expectedVersion. However, it never names dropyour_replace as the alternative tool, leaving the when-not case slightly 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.