Skip to main content
Glama
react-best-practices

react-best-practices

by jinmoo-park

list_rules

Lists React/Next.js best practice rules and filters them by category, impact level, or tags so coding assistants can find relevant guidance for code reviews and implementation.

Instructions

List all React/Next.js best practice rules. Can filter by category, impact level, or tags.

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_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoFilter by tags (e.g., ["async", "performance"])
impactNoFilter by impact level
categoryNoFilter by category (async, bundle, server, client, rerender, rendering, js, advanced)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden; it does convey that the tool is a read-only enumeration of 'all' rules with optional narrowing filters, which is useful behavioral context. It does not state ordering, pagination, result size, or what a returned rule looks like, gaps that matter given 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, the core purpose front-loaded, and no filler or redundancy. Every clause earns its place.

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 simple zero-required-parameter list tool with fully described params, the definition covers purpose and filtering adequately. The main residual gap is the absence of any hint about return shape or result volume, which the lack of an output schema leaves unaddressed.

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% with both enums fully documented, so the schema already explains tags, impact, and category values. The description only restates the three filter dimensions without adding syntax, combination, or AND/OR semantics beyond what the schema provides.

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 gives a specific verb ('List') and a well-scoped resource ('React/Next.js best practice rules'), so the agent knows exactly what will be returned. It does not explicitly distinguish itself from sibling search_rules or get_rule, so it stops short of a 5.

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?

The sentence 'Can filter by category, impact level, or tags' implies the browse-with-filters use case, but nothing says when to prefer this over search_rules or when to fetch a single rule with get_rule. Usage is inferable but not stated.

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