Skip to main content
Glama

Find rules for a situation

discover_rules
Read-onlyIdempotent

Read-only. Candidate rules in one court for a situation, ranked: give the issue, the facts and the posture in words. Default 8, max 25. Read each with get_rule before relying on it.

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": {
      "court_id": "<court_id>"
    },
    "name": "discover_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
actorNo
factsNo
issueNo
limitNo
postureNo
court_idYesCatalog court id or court_code (CA11, MDFL, 5DCA, Lake-Cir, CA9, …)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the leading 'Read-only.' is redundant. The genuinely additive content is that results are *candidate* rules, ranked, capped at 25 and defaulting to 8, and are not authoritative until confirmed with get_rule — that verification requirement is real behavioral signal not present in the 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?

Three short, front-loaded sentences with no filler; the input recipe and the verification obligation are both stated compactly. The only wasted token is the initial 'Read-only.', which merely restates readOnlyHint=true.

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?

For a 6-parameter tool with 17% schema coverage and no output schema, the definition covers most inputs but leaves 'actor' unexplained and never says what a candidate result actually contains beyond being ranked. The agent knows the workflow but not the shape of what comes back.

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 only 17% (just court_id documented), so the description has to carry the load — and it does for issue, facts, and posture by indicating they are free-text natural-language inputs, plus the limit default of 8 and hard max of 25. The one gap is 'actor', which is never mentioned in either the schema or the description.

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 action (find/discover candidate rules) and scope (one court, ranked for a situation), which an agent can act on immediately. It does not, however, differentiate itself from the sibling search_rules, leaving the reader to infer that discover_rules is relevance-ranked free-text discovery while search_rules is something else.

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?

'Give the issue, the facts and the posture in words' tells the agent how to invoke it, and 'Read each with get_rule before relying on it' defines the mandatory follow-up step. What's missing is any guidance on when to pick this over search_rules, best_authority, or map_procedure — the closest and most confusable siblings are never mentioned.

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