Skip to main content
Glama

search_rules

Search CORE validation rules by keyword across descriptions, messages, or rule IDs to locate relevant CDISC conformance checks.

Instructions

Search CORE rules by keyword in description, message, or core_id.

Args: query: Search string (case-insensitive). Matches against rule description, action messages, and core_id. max_results: Maximum results to return (default 50).

Returns: Matching rules sorted by relevance.

Usage: search_rules("USUBJID") search_rules("date format") search_rules("missing value") search_rules("CORE-000351")

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": {
      "query": "<query>"
    },
    "name": "search_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
max_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose case-insensitivity, the searchable fields, the default result cap, and relevance ordering, but says nothing about pagination, truncation behavior when more than max_results match, or cost of a broad query.

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?

Front-loaded opening sentence followed by Args/Returns/Usage sections; every line is functional. The example block is somewhat redundant with the Args text, but not wasteful enough to penalize heavily.

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 two-parameter search tool with no output schema, the description gives a return summary (matching rules sorted by relevance) but leaves result shape, total-match counts, and truncation semantics unspecified. Adequate to call correctly, thin on 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 0%, so the description must supply all parameter meaning, and it does: query is a case-insensitive string matched against description, action messages, and core_id; max_results is a cap defaulting to 50. It does not state whether max_results has an upper bound or what happens on truncation.

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 verb and resource ("Search CORE rules") plus the exact fields scanned (description, message, core_id), which distinguishes it from a simple listing tool. It does not explicitly contrast with siblings like list_rules or get_rule_details, so it stops 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 Guidelines3/5

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

Four usage examples show the intended input style (field names, phrases, a core_id), which implies keyword-lookup use. There is no explicit statement of when to prefer this over list_rules or get_rule_details, and no case where it should not be used.

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