Skip to main content
Glama

Fetch sample rules

fetch_sample_rules
Read-onlyIdempotent

Fetch a stable teaser sample of up to 20 public rules (no evidence or remediation). Optionally filter by category. Use when: You have no API key and need to see what a public rule looks like. Avoid when: You have a key and need the full rule. Use fetch_rules or search_rules. Do not claim: A teaser has no remediation. It is not enough to apply the rule. Verify: This is a read. Nothing on the page changes until you edit and scan or lint.

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

Input Schema

NameRequiredDescriptionDefault
categoryNoOptional category name from list_categories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: the sample is capped at 20, omits evidence and remediation fields, and is explicitly insufficient to apply a rule. The "Verify: This is a read. Nothing on the page changes..." sentence mostly restates the annotations, which keeps it just below 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 payload summary and the gating condition come first, then alternatives, then caveats, which is the right order. The pseudo-labeled "Do not claim:" and "Verify:" fragments read awkwardly and the Verify sentence is partly redundant, but no sentence is filler.

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?

There is no output schema, so the description must characterize the return value, and it does: a stable teaser sample of up to 20 public rules with evidence and remediation stripped. Combined with the guidance on when the sample is insufficient, an agent has everything needed to call it and interpret the result.

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% and the single optional parameter already documents itself as "Optional category name from list_categories." The description's "Optionally filter by category" repeats the schema without adding format, valid values, or default behavior, so the baseline 3 applies.

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?

"Fetch a stable teaser sample of up to 20 public rules (no evidence or remediation)" gives a specific verb, resource, size cap and payload scope. It is immediately distinguishable from fetch_rules and search_rules, which are named explicitly as the full-rule alternatives.

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?

Explicit "Use when: You have no API key and need to see what a public rule looks like" plus "Avoid when: You have a key and need the full rule. Use fetch_rules or search_rules." Both the triggering condition and the correct alternative are stated, leaving nothing to inference.

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.