Skip to main content
Glama

Get Code Review Rules

get-review-rules
Read-onlyIdempotent

List design review rules by ID, title, severity, and category, then retrieve full rule details with detail or category filters; review evidence remains required.

Instructions

List review rule IDs, titles, severity and categories. Use detail:full or a category for complete rules. Review evidence is still required.

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": "get-review-rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNo
contextNo
categoryNo
maxTokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: the default response is a partial listing, and complete rules require detail:full or a category. It stops short of explaining maxTokens truncation behavior or what 'review evidence is still required' entails operationally.

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?

Three short sentences with the return contents front-loaded and the escalation path second; nothing is padded. The closing sentence about review evidence is terse to the point of being cryptic, slightly weakening an otherwise tight structure.

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?

There is no output schema, and with 0% schema coverage across four parameters the description should do more. It covers return fields and the detail/category levers adequately but leaves context, maxTokens, and differentiation from get-team-rules unexplained.

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 0%, so the description carries the burden, and it explains two of four parameters meaningfully (detail's summary-vs-full effect and category filtering). The context and maxTokens parameters get no explanation in either the schema or the description, leaving a real gap.

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 ('List') and enumerates the returned fields (rule IDs, titles, severity, categories), so the resource is unambiguous. It does not explicitly distinguish itself from the similarly named sibling get-team-rules, which keeps it 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 'Use detail:full or a category for complete rules' gives clear parameter-level guidance about when to escalate from the default listing. However, there is no guidance on when to use this tool versus get-team-rules or when not to call it at all; usage is only implied.

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