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; if other apps call this one under a contract (dropyour_link), a patch that breaks one is refused and the previous version put back. 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

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?

With only idempotentHint=false and destructiveHint=false as annotations, the description carries the burden and delivers: refusal on count mismatch (nothing replaced, real count returned), refusal on version drift, contract-break refusal with automatic rollback, each patch creating a full rollback-able version, and scanning of the resulting document. This is unusually rich behavioral disclosure.

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 core action is front-loaded in the first clause and every subsequent sentence adds a distinct behavioral rule, so the length is mostly justified. It is dense and dash-heavy with some filler ('the Edit semantics you already know'), which costs it the top mark.

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 7-parameter mutation tool with no output schema, the description covers failure modes, versioning, rollback, and scanning well enough to call it safely. It omits the response shape and any authentication/permission note for managementToken, which is what keeps it from a 5.

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 compensate, and it does for the key params: old (exact literal to find), new (replacement), occurrences (default 1, count-match semantics), path (served file, default index.html), expectedVersion (from list_versions). dropId and managementToken remain unexplained, keeping this short of a 5.

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+resource+scope: 'Replace ONE literal anchor in the SERVED content without re-uploading everything.' The 'ONE literal anchor' framing and 'served content' cleanly separate it from a whole-file replace (dropyour_replace) or a full publish, so an agent can pick it apart from siblings.

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?

Gives concrete use conditions: use it for literal anchor edits, pass expectedVersion from list_versions to avoid blind overwrites, and note that Tiers 1-3 only work for single-file drops (multi-file sites 'are replaced whole'). It implies but never names the whole-content alternative tool explicitly.

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.