Skip to main content
Glama

check_rules

Read-onlyIdempotent

Checks configured coverage rules and reports noncompliant needs with reasons, helping you identify what to fix before the build determines pass/fail.

Instructions

設定ファイル(sphinx-needs-mcp.toml)の網羅の規則を調べ、守れていない need と理由を返します。

例:「承認済みのソフトウェア要件は、検証ケースから参照されていること」を守れていない要件。 合否を決めるのはビルドです。これは、どこを直せばよいかを細かく調べるためのものです。 規則の一覧は describe_project の rules で分かります。

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": "check_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo規則ごとに返す違反の上限(1〜500)
rule_idNoこの規則だけを調べます。省略すると、すべての規則を調べます

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the description does not need to restate the safety profile. It adds useful behavioural context: the output is a list of violating needs and the reason for each violation, and the result is diagnostic rather than authoritative. It does not describe pagination or the per-rule grouping behaviour, which the annotations do not cover.

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 description is front-loaded with the purpose, and each subsequent sentence earns its place: the example clarifies the kind of violation, the build statement sets expectations, and the final line points to the rule catalog. It is slightly longer than strictly necessary but nothing is redundant.

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?

An output schema exists, so return values need not be explained, and the annotations plus full schema coverage carry the rest. The description supplies the missing conceptual context: what a rule violation looks like, that the build is the source of truth, and where to find the rule list. Only minor operational details, such as whether all needs are scanned, are absent.

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 rule_id (check only this rule; omit to check all) and limit (1–500, default 50, per rule) are fully documented in the schema. The description adds no parameter-level meaning beyond that, which is acceptable given the coverage baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it inspects the coverage rules defined in sphinx-needs-mcp.toml and returns the needs that violate those rules, together with the reasons. It also gives a concrete example of a broken rule, so an agent can distinguish it from siblings such as describe_project (which lists rules) or status_report.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly says that the build determines pass/fail and that this tool exists to investigate in detail where to fix problems, which is a clear when-to-use and when-not-to-rely statement. It also points to describe_project's rules as the place to discover what rules exist, routing the agent to the right sibling first.

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