Skip to main content
Glama
react-best-practices

react-best-practices

by jinmoo-park

list_categories

Browse all React/Next.js rule categories with impact levels and descriptions to select relevant performance guidance for coding or review.

Instructions

List all rule categories with their impact levels and descriptions.

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": "list_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. "List all" usefully signals an unfiltered, unpaginated enumeration and names the returned fields (impact levels, descriptions), but it never states that the operation is read-only or whether the category set is fixed or user-configurable.

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 front-loaded sentence with no filler; every clause (list all, categories, impact levels, descriptions) adds information about scope or return content.

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 zero-parameter listing tool with no output schema, the description covers the essentials by naming the fields returned. It falls just short of complete because it leaves the relationship to list_rules and the read-only nature unstated.

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?

The input schema has zero parameters, so there is no parameter semantics to document; the baseline of 4 applies. The description correctly implies no filtering arguments exist by saying "all".

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?

"List all rule categories with their impact levels and descriptions" states a specific verb (list), resource (rule categories), and the fields returned. It does not name or differentiate itself from sibling list_rules, so an agent must infer that categories are a distinct taxonomy level rather than rules themselves.

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 only implied: the tool is the obvious way to enumerate categories before drilling into list_rules or get_rule. There is no explicit statement of when to prefer it over list_rules, nor any precondition such as whether rules must exist first.

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