Skip to main content
Glama

List active rules and detector versions

codeinspectus_list_rules
Read-onlyIdempotent

Lists active detectors, engine versions, detection and vulnerability database freshness, and shipped AI-code rules or native packs so you can verify scanner coverage and rule provenance before scans.

Instructions

List the active detectors and engine versions, the CodeInspectus detection-database version and date, Trivy vulnerability-DB freshness, bundled Pub advisory-database provenance/freshness, and the custom CodeInspectus AI-code rules and native detector packs currently shipped.

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

Input Schema

NameRequiredDescriptionDefault
engineNoFilter to one engine's rules/detectors.

Output Schema

NameRequiredDescriptionDefault
noteYes
enginesYes
rule_groupsYes
custom_rulesYes
engine_setupYes
native_packsYes
trivy_db_dateNo
synvoya_datasetYes
custom_rule_countYes
detection_db_dateYes
advisory_databasesYes
sast_rule_languagesNo
detection_db_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv4.0.0
    • changedInput schema / properties / engine / enum
      Previous value: -[
      -  "opengrep",
      -  "gitleaks",
      -  "trivy",
      -  "codeinspectus-ai",
      -  "codeinspectus-pub"
      -]New value: +[
      +  "opengrep",
      +  "gitleaks",
      +  "trivy",
      +  "osv-scanner",
      +  "codeinspectus-ai",
      +  "codeinspectus-pub",
      +  "synvoya"
      +]
    • removedOutput schema / properties / advisory_databases / items / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / advisory_databases / items / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "active_advisories": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "affected_packages": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "age_days": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "attribution": {
      +        "type": "string"
      +      },
      +      "checked_at": {
      +        "type": "string"
      +      },
      +      "content_digest": {
      +        "type": "string"
      +      },
      +      "ecosystem": {
      +        "const": "Pub",
      +        "type": "string"
      +      },
      +      "engine": {
      +        "const": "codeinspectus-pub",
      +        "type": "string"
      +      },
      +      "latest_record_modified": {
      +        "type": "string"
      +      },
      +      "license": {
      +        "const": "CC-BY-4.0",
      +        "type": "string"
      +      },
      +      "matching": {
      +        "const": "exact-enumerated-versions",
      +        "type": "string"
      +      },
      +      "note": {
      +        "type": "string"
      +      },
      +      "source_database": {
      +        "const": "GitHub Advisory Database",
      +        "type": "string"
      +      },
      +      "source_url": {
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "stale_after_days": {
      +        "exclusiveMinimum": 0,
      +        "type": "integer"
      +      },
      +      "state": {
      +        "enum": [
      +          "current",
      +          "stale",
      +          "missing",
      +          "invalid"
      +        ],
      +        "type": "string"
      +      },
      +      "version": {
      +        "type": "string"
      +      },
      +      "withdrawn_records": {
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "engine",
      +      "ecosystem",
      +      "state",
      +      "version",
      +      "stale_after_days",
      +      "active_advisories",
      +      "withdrawn_records",
      +      "affected_packages",
      +      "matching",
      +      "source_url",
      +      "source_database",
      +      "license",
      +      "attribution"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "attribution": {
      +        "type": "string"
      +      },
      +      "checked_at": {
      +        "type": "string"
      +      },
      +      "content_digest": {
      +        "type": "string"
      +      },
      +      "ecosystem": {
      +        "$ref": "#/properties/engine_setup/properties/osv_databases/items/properties/ecosystem"
      +      },
      +      "engine": {
      +        "const": "osv-scanner",
      +        "type": "string"
      +      },
      +      "license": {
      +        "type": "string"
      +      },
      +      "matching": {
      +        "const": "osv-scanner-offline",
      +        "type": "string"
      +      },
      +      "note": {
      +        "type": "string"
      +      },
      +      "source_database": {
      +        "const": "OSV.dev",
      +        "type": "string"
      +      },
      +      "source_url": {
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "current",
      +          "stale",
      +          "provenance_missing"
      +        ],
      +        "type": "string"
      +      },
      +      "version": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "engine",
      +      "ecosystem",
      +      "state",
      +      "version",
      +      "matching",
      +      "source_url",
      +      "source_database",
      +      "license",
      +      "attribution"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / advisory_databases / items / properties
      Removed value: -{
      -  "active_advisories": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "affected_packages": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "age_days": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "attribution": {
      -    "type": "string"
      -  },
      -  "checked_at": {
      -    "type": "string"
      -  },
      -  "content_digest": {
      -    "type": "string"
      -  },
      -  "ecosystem": {
      -    "const": "Pub",
      -    "type": "string"
      -  },
      -  "engine": {
      -    "const": "codeinspectus-pub",
      -    "type": "string"
      -  },
      -  "latest_record_modified": {
      -    "type": "string"
      -  },
      -  "license": {
      -    "const": "CC-BY-4.0",
      -    "type": "string"
      -  },
      -  "matching": {
      -    "const": "exact-enumerated-versions",
      -    "type": "string"
      -  },
      -  "note": {
      -    "type": "string"
      -  },
      -  "source_database": {
      -    "const": "GitHub Advisory Database",
      -    "type": "string"
      -  },
      -  "source_url": {
      -    "format": "uri",
      -    "type": "string"
      -  },
      -  "stale_after_days": {
      -    "exclusiveMinimum": 0,
      -    "type": "integer"
      -  },
      -  "state": {
      -    "enum": [
      -      "current",
      -      "stale",
      -      "missing",
      -      "invalid"
      -    ],
      -    "type": "string"
      -  },
      -  "version": {
      -    "type": "string"
      -  },
      -  "withdrawn_records": {
      -    "minimum": 0,
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / advisory_databases / items / required
      Removed value: -[
      -  "engine",
      -  "ecosystem",
      -  "state",
      -  "version",
      -  "stale_after_days",
      -  "active_advisories",
      -  "withdrawn_records",
      -  "affected_packages",
      -  "matching",
      -  "source_url",
      -  "source_database",
      -  "license",
      -  "attribution"
      -]
    • removedOutput schema / properties / advisory_databases / items / type
      Removed value: -"object"
    • addedOutput schema / properties / custom_rules / items / properties / engine_family
      Added value: +{
      +  "$ref": "#/properties/engines/items/properties/engine_family"
      +}
    • changedOutput schema / properties / engine_setup / properties / engines / items / properties / engine / enum
      Previous value: -[
      -  "opengrep",
      -  "gitleaks",
      -  "trivy"
      -]New value: +[
      +  "opengrep",
      +  "gitleaks",
      +  "trivy",
      +  "osv-scanner"
      +]
    • addedOutput schema / properties / engine_setup / properties / osv_databases
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "downloaded_at": {
      +        "type": "string"
      +      },
      +      "ecosystem": {
      +        "enum": [
      +          "npm",
      +          "PyPI",
      +          "Packagist",
      +          "Go",
      +          "crates.io",
      +          "RubyGems",
      +          "Maven",
      +          "NuGet",
      +          "Pub",
      +          "GitHub Actions"
      +        ],
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "ready",
      +          "provenance_missing",
      +          "stale"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ecosystem",
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / engines / items / properties / display_name
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / engines / items / properties / engine / enum
      Previous value: -[
      -  "opengrep",
      -  "gitleaks",
      -  "trivy",
      -  "codeinspectus-ai",
      -  "codeinspectus-pub"
      -]New value: +[
      +  "opengrep",
      +  "gitleaks",
      +  "trivy",
      +  "osv-scanner",
      +  "codeinspectus-ai",
      +  "codeinspectus-pub",
      +  "synvoya"
      +]
    • addedOutput schema / properties / engines / items / properties / engine_family
      Added value: +{
      +  "enum": [
      +    "synvoya"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / rule_groups
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "engine_family": {
      +        "$ref": "#/properties/engines/items/properties/engine_family"
      +      },
      +      "engines": {
      +        "items": {
      +          "$ref": "#/properties/engines/items/properties/engine"
      +        },
      +        "type": "array"
      +      },
      +      "group": {
      +        "type": "string"
      +      },
      +      "rule_count": {
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "group",
      +      "rule_count",
      +      "engines"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / sast_rule_languages
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "language": {
      +        "type": "string"
      +      },
      +      "rule_count": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "rulesets": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "language",
      +      "rule_count",
      +      "rulesets"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / synvoya_dataset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "advisory_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "date": {
      +          "type": "string"
      +        },
      +        "state": {
      +          "const": "available",
      +          "type": "string"
      +        },
      +        "version": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "state",
      +        "version",
      +        "date",
      +        "advisory_count"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "reason": {
      +          "type": "string"
      +        },
      +        "state": {
      +          "const": "unavailable",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "state",
      +        "reason"
      +      ],
      +      "type": "object"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "detection_db_version",
      -  "detection_db_date",
      -  "engines",
      -  "engine_setup",
      -  "native_packs",
      -  "advisory_databases",
      -  "custom_rules",
      -  "custom_rule_count",
      -  "note"
      -]New value: +[
      +  "detection_db_version",
      +  "detection_db_date",
      +  "engines",
      +  "synvoya_dataset",
      +  "rule_groups",
      +  "engine_setup",
      +  "native_packs",
      +  "advisory_databases",
      +  "custom_rules",
      +  "custom_rule_count",
      +  "note"
      +]
  2. Changed12 schema fields changedv2.5.0
    • changedInput schema / properties / engine / enum
      Previous value: -[
      -  "opengrep",
      -  "gitleaks",
      -  "trivy",
      -  "codeinspectus-ai"
      -]New value: +[
      +  "opengrep",
      +  "gitleaks",
      +  "trivy",
      +  "codeinspectus-ai",
      +  "codeinspectus-pub"
      +]
    • addedOutput schema / properties / advisory_databases
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "active_advisories": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "affected_packages": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "age_days": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "attribution": {
      +        "type": "string"
      +      },
      +      "checked_at": {
      +        "type": "string"
      +      },
      +      "content_digest": {
      +        "type": "string"
      +      },
      +      "ecosystem": {
      +        "const": "Pub",
      +        "type": "string"
      +      },
      +      "engine": {
      +        "const": "codeinspectus-pub",
      +        "type": "string"
      +      },
      +      "latest_record_modified": {
      +        "type": "string"
      +      },
      +      "license": {
      +        "const": "CC-BY-4.0",
      +        "type": "string"
      +      },
      +      "matching": {
      +        "const": "exact-enumerated-versions",
      +        "type": "string"
      +      },
      +      "note": {
      +        "type": "string"
      +      },
      +      "source_database": {
      +        "const": "GitHub Advisory Database",
      +        "type": "string"
      +      },
      +      "source_url": {
      +        "format": "uri",
      +        "type": "string"
      +      },
      +      "stale_after_days": {
      +        "exclusiveMinimum": 0,
      +        "type": "integer"
      +      },
      +      "state": {
      +        "enum": [
      +          "current",
      +          "stale",
      +          "missing",
      +          "invalid"
      +        ],
      +        "type": "string"
      +      },
      +      "version": {
      +        "type": "string"
      +      },
      +      "withdrawn_records": {
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "engine",
      +      "ecosystem",
      +      "state",
      +      "version",
      +      "stale_after_days",
      +      "active_advisories",
      +      "withdrawn_records",
      +      "affected_packages",
      +      "matching",
      +      "source_url",
      +      "source_database",
      +      "license",
      +      "attribution"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / custom_rules / items / properties / fallback_engine
      Added value: +{
      +  "const": "opengrep",
      +  "type": "string"
      +}
    • addedOutput schema / properties / custom_rules / items / properties / owasp_api
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / custom_rules / items / properties / owasp_llm
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / custom_rules / items / properties / owasp_web
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / custom_rules / items / properties / pack_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / custom_rules / items / properties / severity
      Added value: +{
      +  "enum": [
      +    "critical",
      +    "high",
      +    "medium",
      +    "low",
      +    "info"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / engine_setup
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "engines": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "detail": {
      +            "type": "string"
      +          },
      +          "engine": {
      +            "enum": [
      +              "opengrep",
      +              "gitleaks",
      +              "trivy"
      +            ],
      +            "type": "string"
      +          },
      +          "state": {
      +            "enum": [
      +              "ready",
      +              "missing",
      +              "hash_mismatch",
      +              "unpinned",
      +              "lockfile_error",
      +              "unsupported_platform"
      +            ],
      +            "type": "string"
      +          },
      +          "version": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "engine",
      +          "version",
      +          "state"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "network_required": {
      +      "type": "boolean"
      +    },
      +    "platform": {
      +      "type": "string"
      +    },
      +    "repair_command": {
      +      "type": "string"
      +    },
      +    "state": {
      +      "enum": [
      +        "ready",
      +        "repair_required",
      +        "db_refresh_recommended",
      +        "unsupported_platform"
      +      ],
      +      "type": "string"
      +    },
      +    "trivy_db": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "downloaded_at": {
      +          "type": "string"
      +        },
      +        "state": {
      +          "enum": [
      +            "ready",
      +            "missing",
      +            "provenance_missing",
      +            "stale"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "state"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "platform",
      +    "engines",
      +    "trivy_db",
      +    "network_required"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / engines / items / properties / engine / enum
      Previous value: -[
      -  "opengrep",
      -  "gitleaks",
      -  "trivy",
      -  "codeinspectus-ai"
      -]New value: +[
      +  "opengrep",
      +  "gitleaks",
      +  "trivy",
      +  "codeinspectus-ai",
      +  "codeinspectus-pub"
      +]
    • addedOutput schema / properties / native_packs
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "analyzer_count": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "frameworks": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "languages": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "limitations": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "platforms": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "rule_count": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "scanner_kind": {
      +        "enum": [
      +          "ai",
      +          "sast"
      +        ],
      +        "type": "string"
      +      },
      +      "version": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "version",
      +      "scanner_kind",
      +      "languages",
      +      "frameworks",
      +      "platforms",
      +      "limitations",
      +      "analyzer_count",
      +      "rule_count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "detection_db_version",
      -  "detection_db_date",
      -  "engines",
      -  "custom_rules",
      -  "custom_rule_count",
      -  "note"
      -]New value: +[
      +  "detection_db_version",
      +  "detection_db_date",
      +  "engines",
      +  "engine_setup",
      +  "native_packs",
      +  "advisory_databases",
      +  "custom_rules",
      +  "custom_rule_count",
      +  "note"
      +]
  3. First observedv0.2.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description adds no behavior of its own — no note on cost, freshness staleness semantics, or whether the inventory reflects installed vs. available rules; it mostly re-describes what is returned, which the output schema already covers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence, which is structurally sound, but it is a dense laundry list of database-provenance items that largely duplicate the output schema rather than helping selection. Trimming the return-value enumeration would sharpen it considerably.

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

Completeness4/5

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

Given a single optional parameter, full schema coverage, and the presence of an output schema, the definition is essentially complete for correct invocation — an agent knows exactly what this returns and that it is a safe read. Only the missing engine-filter behavior and absence of any when-to-call context keep it from a 5.

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 'engine' parameter is a documented enum, so the schema carries the semantics. The description never mentions the engine filter or what happens when it is omitted (presumably all engines), so it adds nothing beyond the schema — baseline 3 applies.

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?

The description gives a concrete verb ('List') and enumerates the specific resources returned: detectors, engine versions, detection-DB version/date, Trivy DB freshness, Pub advisory provenance, and custom AI rules. The inventory scope is unambiguous and clearly distinct from the scan/explain/compliance siblings, though it never names a sibling to contrast against.

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?

There is no explicit when-to-use statement, no prerequisites, and no conditions under which another tool (e.g. codeinspectus_scan or codeinspectus_setup) is preferred. Usage is only implied by the nature of a metadata/version listing tool, which an agent can infer but is not guided on.

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