Skip to main content
Glama

Privi Agent Survival & Premium

JSON merge preview

privi_json_merge_preview
Read-only

Preview a shallow merge and report overwritten keys without mutating inputs.

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": {
      "base": "<base>",
      "updates": "<updates>"
    },
    "name": "privi_json_merge_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYes
updatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds useful behavior beyond that: the merge is shallow, overwritten keys are reported, and inputs are not mutated. It does not explain merge precedence or nested-object replacement in detail, but it gives meaningful behavioral context.

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?

The definition is a single front-loaded sentence with no filler. Every phrase contributes to purpose, scope, or the non-mutating constraint.

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?

The tool is simple, and the annotations cover its read-only nature, but there is no output schema and the description only loosely indicates return content. It does not fully specify whether the merged preview is returned alongside overwritten keys, nor how nested objects behave under a shallow merge.

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 0%, so the schema gives only types, not meanings. The description partially compensates by indicating that a shallow merge occurs and that keys are overwritten, which implies how base and updates relate, but it does not explicitly name the parameters or state which side wins in a collision.

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 states a specific verb and resource: 'Preview a shallow merge' and adds the key behavioral result, 'report overwritten keys.' It also distinguishes the operation from a mutating merge by saying 'without mutating inputs.'

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 word 'Preview' and the phrase 'without mutating inputs' imply this is for non-committal merge checks before applying changes. However, there is no explicit when-to-use guidance, no when-not-to-use guidance, and no named alternative tool for comparison.

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