Skip to main content
Glama

update-dialect

What do omitted, null, [] and "" mean in this PATCH body under merge-patch, JSON Patch or a declared dialect? — For an agent about to send a PATCH or update body: states, per field, what omitted / null / [] / "" mean under the declared dialect (RFC 7396 merge patch, RFC 6902 JSON Patch, or caller-declared semantics) and checks the body against stated intents such as 'clear this field', 'leave this alone' or 'set to empty array'. With a target document it applies the patch and compares the result; without on

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": {
      "dialect": "<dialect>",
      "payload": "<payload>"
    },
    "name": "update-dialect"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoCurrent document, if available. Enables applying the patch and exact checks.
dialectYesmerge-patch = RFC 7396, json-patch = RFC 6902 (payload is an array of operations), caller = semantics in callerSemantics.
intentsNo
payloadYesThe PATCH body.
callerSemanticsNoRequired when dialect is 'caller': what each payload form means in that API.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose that with a target document it applies the patch and compares the result, but it never states whether it mutates anything, whether it is purely analytical, or what happens when target is omitted -- the exact sentence that would answer this is truncated at 'without on'. For a PATCH-related tool with no annotations, that ambiguity is material.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition opens with a question that repeats a list ('omitted, null, [] and ""') appearing three times, and ends mid-word ('without on'), leaving a broken sentence. The informational content is buried in a single run-on clause rather than front-loaded as a verb statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 5-parameter tool with nested objects, no output schema, and no annotations, so the description must carry output shape and side-effect disclosure. It instead truncates before explaining the no-target mode and never describes what the check result looks like, leaving an agent unable to predict the response.

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 coverage is 80%, so the schema already documents dialect, target, intents, and payload adequately. The description reinforces the dialect dimension (RFC 7396 merge patch, RFC 6902 JSON Patch, caller-declared semantics) and the target-dependent behavior, but adds no format detail beyond what required callerSemantics and intents already express.

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 core sentence gives a concrete verb and scope: it states, per field, what omitted / null / [] / "" mean under the declared dialect and checks the body against stated intents. That is specific enough to distinguish it from a plain validator, though the leading rhetorical question ('What do omitted, null, [] and "" mean...') front-loads framing instead of the function, and no sibling is named for contrast.

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?

'For an agent about to send a PATCH or update body' implies the usage context, which is helpful. However, there is no explicit when-not guidance, no alternative named (e.g., a schema-validation or diff sibling), and the sentence that would explain the no-target case is cut off mid-word, so the caller cannot tell which mode they are in.

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