Skip to main content
Glama

Validate component usage

validate_usage
Read-onlyIdempotent

Checks Angular templates and component source against ExhaustiveUI's compiled API to catch unknown inputs/outputs, invalid literals, deprecated or renamed v22 APIs, wrong selectors, PrimeNG imports.

Instructions

Check an Angular template or component source against the compiled API of an ExhaustiveUI component: unknown inputs and outputs, invalid literal values, unsupported two-way bindings, deprecated inputs, inputs and outputs removed or renamed in v22 (with their replacement), wrong selectors and PrimeNG imports. Accepts a batch of up to 10 usages.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoAngular template or component source using the component.
usagesNoBatch form: up to 10 { component, code } items.
componentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. Beyond that, the description discloses the actual validation surface (including that v22 removals are reported with their replacement) and states the batch cap of 10, which is genuinely useful context. It does not describe the shape of the result beyond naming the categories of findings.

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?

It is a single front-loaded sentence with no filler, and the validation categories are listed in a scannable order. The enumeration is long, but each item adds discriminating information about what will be reported, so it is dense rather than 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 effectively pre-announces the categories of findings an agent will get back. The main gap is the unexplained 'component' parameter and the absence of any note on what happens when both 'code' and 'usages' are supplied.

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 67%, so the schema does most of the work and the baseline is 3. The description reinforces the batch form and its 10-item limit (already encoded as maxItems), and clarifies that 'code' is template or component source, but it says nothing about the 'component' parameter, which has no schema description at all.

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 gives a specific verb ('Check') and resource ('Angular template or component source') and then enumerates exactly what is validated: unknown inputs/outputs, invalid literals, unsupported two-way bindings, deprecations, v22 removals, selectors, and PrimeNG imports. This is clearly distinct from the sibling lookup tools (get_component, get_example, search, version).

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?

Usage is implied by the framing ('check source against the compiled API'), so an agent can infer this is the verification step after retrieving a component's API. However, there is no explicit when-to-use statement, no prerequisite such as needing the component name or version, and no guidance on when to prefer a single 'code' check versus the 'usages' batch.

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