Skip to main content
Glama

validate_props

Validates that a props object is correctly used for a specified PrimeReact component, helping catch incorrect prop usage before implementation.

Instructions

Validate if props exist and are correctly used for a PrimeReact component

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": {
      "component": "<component>",
      "props": "<props>"
    },
    "name": "validate_props"
  }
}

Input Schema

NameRequiredDescriptionDefault
propsYesProps object to validate
componentYesComponent name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden and does not meet it. It never says whether validation failures return a list of problems, throw an error, or produce a boolean, nor whether unknown/extra props, type mismatches, or nested prop objects are checked.

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?

A single tight sentence with no filler, and the verb/resource are front-loaded. It is efficient but border-line under-specified rather than genuinely concise, since brevity is achieved by omitting behavior.

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?

The tool takes a free-form nested props object and has no output schema and no annotations, so the agent most needs to know what a validation result looks like and what counts as a violation. Neither is addressed, leaving a significant gap for a validator whose entire value is in its verdict semantics.

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 baseline is 3 — the schema already labels 'component' as the component name and 'props' as the props object to validate. The description adds only that props must 'exist and be correctly used,' without explaining the expected shape of the arbitrary-key props object beyond what the schema states.

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 and resource — 'Validate' plus 'props ... for a PrimeReact component' — which is more precise than the bare tool name. It implicitly contrasts with discovery siblings like get_component_props, but never names them, so the differentiation is left to inference.

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: check that props exist and are used correctly for a given component. There is no explicit when-to-use, when-not-to-use, or statement that valid prop names must first be obtained via get_component_props, nor any prerequisite about knowing the component name exactly.

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