Skip to main content
Glama

Patch JSON key

patch_key
Destructive

Apply JSON Merge Patch text with an exact quoted ETag. Null members delete; arrays/scalars replace. No blind retries.

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": {
      "key": "<key>",
      "patch": "<patch>",
      "if_match": "<if_match>"
    },
    "name": "patch_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
patchYes
if_matchYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered. The description still adds real value beyond that by spelling out merge-patch semantics ("Null members delete; arrays/scalars replace") and the practical retry prohibition, but says nothing about what happens on an ETag mismatch or whether a missing key is created.

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 short clauses, front-loaded with the operation and its required argument, with zero filler. Every sentence adds information an agent would otherwise have to guess.

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 destructive, non-idempotent mutation with no output schema and no parameter documentation, the description covers the core semantics, the ETag requirement, and retry behavior. The main remaining gap is failure behavior on ETag mismatch (e.g., 412) and whether an absent key is created.

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 description coverage is 0%, so the description carries the full burden, and it meaningfully defines two of three parameters: patch is JSON Merge Patch text with documented null/array/scalar behavior, and if_match is an exact quoted ETag. Only key is left to its schema pattern.

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?

"Apply JSON Merge Patch text" names a specific verb and operation on a specific resource, and the merge-patch framing implicitly separates it from a full-replacement put_key. It stops short of explicitly naming a sibling or contrasting behavior, so it lands at a clear-but-not-differentiated 4.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The precondition "with an exact quoted ETag" plus "No blind retries" gives usable invocation guidance, but the description never says when to choose this over put_key or create_key. Usage is implied rather than stated.

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