Skip to main content
Glama

ai_rules_check

Read-only

Text rules / guideline checker — Check any text against your own rules (brand voice, compliance, style guide, content policy). Per-rule PASS/FAIL/UNCLEAR with an exact quote as evidence (verified verbatim against the text), reason and a concrete fix, plus overall PASS/FAIL/REVIEW. GET ?text=&rules=<rules separated by ; | or new lines, max 20>. Price: $0.008 USDC (Base, via x402).

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": {
      "text": "<text>",
      "rules": "<rules>"
    },
    "name": "ai_rules_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesGet 50% off today only! Call now, no refunds.
rulesYesDo not use urgency language;Mention the refund policy;Under 50 words

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already mark this as a non-destructive read, and the description goes well past them: per-rule PASS/FAIL/UNCLEAR output with a verbatim-verified quote as evidence, a reason, a concrete fix, and an overall PASS/FAIL/REVIEW verdict. It also discloses cost ($0.008 USDC on Base via x402) and the 20-rule ceiling — payment and quota facts an agent cannot get from annotations.

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?

A single dense paragraph, but it is front-loaded with the purpose before the output contract, format constraints, and price. Every clause carries information an agent needs; the only cost is that pricing and delimiter rules are buried mid-sentence rather than broken out.

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

Completeness5/5

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

With two required parameters, no output schema, and no nested objects, the description carries the full load and does so: it specifies input encoding, the rule-count limit, the exact response structure including evidence/fix fields, the verdict vocabulary, and the payment requirement. Nothing an agent needs to invoke and interpret this successfully 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%, but the schema's parameter descriptions are bare examples rather than specifications. The description compensates by stating the actual encoding: rules separated by ";", "|", or new lines, with a maximum of 20 — a hard constraint absent from the schema that materially affects how the agent must format the call.

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?

"Check any text against your own rules" gives a specific verb (check) and resource (user-supplied text + user-supplied rules), and the parenthetical use cases (brand voice, compliance, style guide, content policy) frame it as a custom-rubric checker rather than a fixed classifier. It does not name a sibling to differentiate from, but the self-defined-rules framing is distinctive enough for an agent to place it.

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 context is implied by the enumerated scenarios (brand voice, compliance, style guide, content policy) and by "your own rules," which tells the agent this is for cases where criteria are supplied by the caller. There is no explicit when-not, no prerequisite statement, and no named alternative despite a crowded ai_* family (ai_classify, ai_contract_risk, ai_claims) that an agent might plausibly confuse it with.

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.

Resources