Skip to main content
Glama

get_rules

Read-onlyIdempotent

Start here. Without a topic: the versions these docs describe, what to know before writing code with nuvui, the packages, the rules in a line each, and which component meets which need. With a topic: that rule in full, with wrong and right code.

Input Schema

NameRequiredDescriptionDefault
topicNoOne of: accessibility, composition, forms, packages, server-components, styling, text-and-direction.
versionNoThe @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / version
      Added value: +{
      +  "description": "The @nuvui/react version in the project's package.json, such as 0.6.2 or ^0.6.0, for the docs of that release. Leave it out for the latest release.",
      +  "maxLength": 40,
      +  "minLength": 1,
      +  "pattern": "^(?:\\^|~|>=|=)?v?\\d+(?:\\.(?:\\d+|x|\\*)){0,2}(?:-[0-9A-Za-z.-]+)?$",
      +  "type": "string"
      +}
  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 readOnly, idempotent and closed-world, so the safety profile is covered. The description adds real behavioral value by describing exactly what each mode returns (versions, packages, one-line rules, component mapping vs. a full rule with wrong/right code), which goes beyond the annotations. It does not mention error behavior or pagination, keeping it from a 5.

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?

The imperative 'Start here.' is front-loaded and the two mode clauses are tightly parallel. The overview list is somewhat long and comma-heavy, but each item adds information rather than filler.

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 no output schema, the description carries the return-value burden and does so for both modes, and both input parameters are documented. It is essentially complete for a low-complexity, zero-required-parameter read tool; only an explicit relationship to sibling lookup tools is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks: the schema only lists topic enum values, while the description explains that supplying a topic switches the response from an overview to a single full rule. The version parameter is left entirely to the schema, so it is not a 5.

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 clearly conveys the resource (the rules/docs for using nuvui) and even the ordering role ('Start here'), distinguishing it as the entry-point tool. It never states a crisp verb like 'retrieve' and does not name any sibling, so an agent must infer how it differs from search_docs or list_guides, which is why 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?

It gives explicit context for both call modes: call without a topic for the overview, call with a topic to get that rule in full. That is genuine when-to-use guidance tied to the parameter. It stops short of naming alternatives (search_docs, list_guides) or stating when not to use it.

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.