Skip to main content
Glama
Lex6won
by Lex6won

search_rules

Search security guidance rules by keyword, status, language, severity, or scenario to find related vulnerabilities, rationale, and safe alternatives beyond scan results.

Instructions

보안 가이드 룰(기준선 + 실시간 인텔)을 키워드로 검색합니다.

특정 취약점 유형의 근거 규정·안전한 대안이 궁금할 때, 또는 스캔 결과의 rule_id 외에 관련 룰을 더 찾고 싶을 때 사용하세요. 코드 검사가 목적이면 이 도구가 아니라 scan_code / scan_path 를 씁니다.

로컬에 적재된 룰만 조회하며 네트워크 호출이 없습니다. 반환되는 results의 각 항목에는 rule_id가 있어 get_rule 로 전문을 조회할 수 있습니다.

Input Schema

NameRequiredDescriptionDefault
limitNo최대 반환 건수 (기본 5)
queryYes검색어(한국어·영어 키워드, 룰 제목·본문·태그 대상). 예: 'SQL 삽입', 'hardcoded secret'
statusNo룰 상태로 필터. proposed=실시간 인텔이 자동 생성한 검토 대기 룰
languageNo프로그래밍 언어로 필터 (예: python, javascript)
scenarioNo시나리오 태그로 필터. 값: web-app | data-pipeline | llm-integration | agent
severity_minNo이 심각도 이상만 반환
approved_onlyNoTrue면 승인(approved)된 룰만 — 자동 생성 proposed 룰 제외

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.5.4
    • addedInput schema / properties / approved_only / description
      Added value: +"True면 승인(approved)된 룰만 — 자동 생성 proposed 룰 제외"
    • addedInput schema / properties / language / description
      Added value: +"프로그래밍 언어로 필터 (예: python, javascript)"
    • addedInput schema / properties / limit / description
      Added value: +"최대 반환 건수 (기본 5)"
    • addedInput schema / properties / query / description
      Added value: +"검색어(한국어·영어 키워드, 룰 제목·본문·태그 대상). 예: 'SQL 삽입', 'hardcoded secret'"
    • addedInput schema / properties / scenario / description
      Added value: +"시나리오 태그로 필터. 값: web-app | data-pipeline | llm-integration | agent"
    • addedInput schema / properties / severity_min / description
      Added value: +"이 심각도 이상만 반환"
    • addedInput schema / properties / status / description
      Added value: +"룰 상태로 필터. proposed=실시간 인텔이 자동 생성한 검토 대기 룰"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so well: it discloses that only locally loaded rules are searched, that there are no network calls, and that each result carries a rule_id for a follow-up get_rule call. It omits result ordering/pagination behavior, keeping it short of 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?

Front-loaded with purpose, then usage/exclusions, then behavior and output chaining across three tight paragraphs. Each sentence earns its place, though the description is a touch longer than strictly necessary for a search tool.

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?

An output schema exists so return-value detail is unnecessary, and the description covers purpose, usage, exclusions, offline behavior, and the follow-up get_rule chain. Nothing an agent needs to call it correctly is missing.

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 all 7 parameters (query, status, language, scenario, severity_min, approved_only, limit) are already documented in the schema. The description adds no parameter-level semantics beyond what the schema provides, so the baseline of 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?

States a specific verb (search) and resource (security guide rules, baseline + real-time intel) with an explicit scope note that only locally loaded rules are queried. It distinguishes itself from scan_code/scan_path by naming them as the wrong tool for code inspection.

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?

Gives concrete when-to-use triggers: finding the rationale/regulation behind a vulnerability type, safe alternatives, or related rules beyond a scan's rule_id. It also states when NOT to use it (code inspection → scan_code / scan_path), which is exactly the routing an agent needs.

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