Skip to main content
Glama
seb4ez

JevGuard MCP Server

by seb4ez

jevguard_prune_state

Prune complex JSON state payloads by removing nulls, empty collections, and whitespace while preventing cyclic reference errors.

Instructions

Sanitizes and prunes complex JSON state payloads by removing nulls, empty collections, collapsing whitespace, and protecting against cyclic references.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYesThe state payload (dict, list, or primitive) to sanitize and prune.
prune_listsNoWhether to strip empty values and nulls from lists (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Without annotations, the description carries the full burden and does reveal meaningful behavior: removing nulls/empty collections, collapsing whitespace, and cycle protection. However, it omits whether the input is mutated or a new payload is returned, and how the prune_lists flag interacts with the described 'empty collections' behavior.

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?

A single sentence that front-loads the verb and resource, with every clause adding a specific behavior. No filler or repetition.

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?

For a two-parameter tool with a fully described schema, the description covers the core behavior, but with no output schema it should state what is returned (or whether mutation occurs). It also lacks any usage context, so an agent is left to infer how the result is consumed.

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 100%, so the schema already documents both parameters. The description adds general context about JSON payloads and cycles but no parameter-specific detail beyond the schema.

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 specific verbs 'Sanitizes and prunes' and names the exact resource ('complex JSON state payloads'), then enumerates concrete operations. This is clearly distinct from siblings like jevguard_calibrate, jevguard_evaluate, and jevguard_cache_fingerprint.

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

Usage Guidelines2/5

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

No statement of when to choose this tool over alternatives, no exclusions, and no mention of sibling tools. The only usage cue is the verb 'prune,' which is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.