Skip to main content
Glama
Handigraphs

handigraphs-stats-api-mcp

Official
by Handigraphs

validate_filter

Read-onlyIdempotent

Check one draft rule or saved filter ID, optionally with a required revision, to confirm save, live, and historical support without saving or running it. Discover canonical units first.

Instructions

Validate exactly one draft rule or saved filter ID, optionally requiring its revision. Returns independent save/live/historical support. Does not save or execute the filter. Discover canonical units first.

Input Schema

NameRequiredDescriptionDefault
ruleNoNative saved-filter rule. Discover canonical units and support; preserve grouping, comparisons and sample context. This is not query_stats numeric filter syntax.
revisionNo
filter_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: it returns independent save/live/historical support results and performs no mutation or execution, which is useful since there is no output schema.

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?

Four short sentences, front-loaded with the core action and immediately followed by the scope restriction and the prerequisite. Every sentence carries information; phrasing is terse but not padded.

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 read-only validation tool with no output schema, the description covers the essentials: what is validated, that nothing is persisted, the return shape (independent support flags), and the prerequisite discovery step. It lacks detail on error/validation-failure behavior, which would round it out.

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?

With only 33% schema coverage, the description compensates well: 'exactly one draft rule or saved filter ID' clarifies the mutual exclusivity of rule vs filter_id, and 'optionally requiring its revision' explains the revision parameter's role as an optimistic-concurrency check. It does not detail rule sub-field semantics, but the nested schema description covers canonical units.

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 (validate) and a precise resource (exactly one draft rule or saved filter ID), then explicitly rules out saving and executing, which separates it from siblings like save_filter, update_saved_filter, and run_filter. An agent can tell what this does without opening the schema.

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?

Provides clear prerequisites and exclusions: 'Does not save or execute the filter' and 'Discover canonical units first' (pointing to describe_filter_capabilities). It does not explicitly name the sibling to call first or state the when-to-validate-vs-get_saved_filter condition, so it stops short of full alternative routing.

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