Skip to main content
Glama

Search Frontend Rules

search_rules
Read-onlyIdempotent

Finds frontend rules by keywords, category, and priority, returning paginated slugs, titles, and short summaries. Use it when the user requests relevant practices for a technology, concern, or pattern, such as web fonts or accessible forms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results to return (default: 20, max: 100)
queryNoKeywords to match, e.g. 'lazy loading images'. Omit to list rules by filters only.
cursorNoCursor from a previous response, to fetch the next page of results.
categoriesNoOnly return rules in these categories.
prioritiesNoOnly return rules with these priorities.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rulesNo
nextCursorNo
totalCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / categories / description
      Previous value: -"Filter by categories (array)"New value: +"Only return rules in these categories."
    • changedInput schema / properties / cursor / description
      Previous value: -"Pagination cursor from previous response"New value: +"Cursor from a previous response, to fetch the next page of results."
    • changedInput schema / properties / priorities / description
      Previous value: -"Filter by priorities (array)"New value: +"Only return rules with these priorities."
    • changedInput schema / properties / query / description
      Previous value: -"Free-text search query"New value: +"Keywords to match, e.g. 'lazy loading images'. Omit to list rules by filters only."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, non-destructive, closed-world read, so the safety burden is covered. The description adds genuinely new behavioral context: results are paginated and are short summaries rather than full rule bodies, which tells the agent to follow up with get_rule for detail. It stops short of describing empty-result or cursor-expiry behavior.

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 sentences, zero filler. The capability and return shape come first, then the usage trigger, which is the right front-loading for an agent scanning for the right tool.

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?

With an output schema present, return values need not be detailed, and the description still gives a useful summary of them. All five parameters are covered between schema and description. The only omission is routing guidance against the many similar-looking siblings, which is a minor gap for a search tool.

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 limit, query, cursor, categories and priorities are all already documented in the schema, including the note that query may be omitted to filter only. The description names the same three filter axes but adds no format or combination semantics beyond the schema; baseline 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?

States a specific verb (finds/searches) and resource (frontend rules) plus the filter dimensions (keywords, category, priority) and the shape of what comes back (paginated slugs, titles, short summaries). The mention of lightweight summary results implicitly distinguishes it from get_rule/explain_rule, but no sibling is named explicitly, so it falls 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use it when the user requests relevant practices for a technology, concern, or pattern, such as web fonts or accessible forms" gives a clear triggering condition with concrete examples. It does not, however, state when NOT to use it or name an alternative such as get_checklist_rules or get_quick_reference, which a crowded sibling set would benefit from.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.