Skip to main content
Glama
Hardik-Singh

Invariance MCP

Official
by Hardik-Singh

invariance_saved_view_create

Create a persistent saved query view over executions, events, runs, nodes, or captures. Set a name, source, and query spec with filters, aggregations, and ordering to build reusable views for monitoring or debugging.

Instructions

Create a saved query view over executions/events/runs/nodes/captures.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vizNo
nameYes
specYesQuerySpec as a JSON object string. Fields (all optional): fields (string[]), filters ([{"field","op":"eq|neq|in|gt|gte|lt|lte","value"}]), group_by (string), aggregation ("count|sum|avg|min|max|count_distinct"), aggregation_field (string), order_by (string), order_dir ("asc|desc"), limit (int). Example: {"filters":[{"field":"status","op":"eq","value":"open"}],"aggregation":"count"}
sourceYes
visibilityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.8/5.0
Behavior2/5

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

The annotations already indicate readOnlyHint=false and destructiveHint=false, and the description's 'Create' is consistent with that. However, the description adds no behavioral context beyond the basic write action, such as whether the view is immediately persisted, requires a unique name, or has side effects.

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 description is a single, front-loaded sentence with no filler. It efficiently communicates the core operation and scope.

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?

With five parameters, no output schema, and limited annotations, the description is too sparse for an agent to confidently invoke the tool. It omits what a saved view is for, how visibility works, what the spec must contain, and what the result of creation is.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description does little to explain the parameters beyond indicating that the view is 'over executions/events/runs/nodes/captures', which maps to the source enum. Schema description coverage is only 20%, and while the spec property has a detailed schema description, the tool description itself does not clarify name, viz, visibility, or how they interact.

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 description names a specific verb ('Create'), a concrete resource ('saved query view'), and the valid data sources. It clearly conveys the tool's purpose, though it does not explicitly differentiate itself from the related saved_view_get/list/update/run/delete siblings beyond the verb.

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 explicit guidance is given for when to use this tool versus alternatives. There is no mention that this is for creating a new view rather than updating, running, or listing views, so an agent must infer usage from the name and description.

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

Deploy Server

Other Tools