Skip to main content
Glama
react-best-practices

react-best-practices

by jinmoo-park

search_rules

Find React and Next.js performance rules by keyword across titles, content, tags, and categories, returning matching best-practice entries for coding assistants.

Instructions

Search rules by keyword. Searches in titles, content, tags, and categories.

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": {
      "query": "<query>"
    },
    "name": "search_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results (default: 10)
queryYesSearch query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 disclosure burden. It usefully reveals the search scope (which fields are matched), but says nothing about matching semantics (substring vs. fuzzy), result ordering, whether the search is read-only, or what the response contains. The field-scope disclosure is genuine added value, but the behavioral profile remains thin.

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, front-loaded with the core action and with zero filler. Every sentence contributes information not already in the title or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter search tool with no output schema and no annotations, the description covers the essentials of what is searched but not how results behave. The absence of return-shape or ordering detail is tolerable given the tool's simplicity, but nothing compensates for the missing annotation coverage.

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 both query and limit are already documented in the schema. The description adds no syntax, format, or semantics beyond that (e.g., no guidance on query syntax or what happens when limit is omitted), so the baseline of 3 applies.

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?

"Search rules by keyword" names a specific verb (search) and resource (rules), and the second sentence specifies the searched fields (titles, content, tags, categories). It does not distinguish itself from siblings like list_rules or get_rule, so an agent must infer that this is the keyword-matching path rather than the enumerate-or-fetch path.

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: an agent can infer 'use this when you have a keyword' from the word 'keyword'. There is no explicit when-not guidance and no mention of list_rules as the alternative for unfiltered enumeration, so routing between siblings is left to inference.

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