Skip to main content
Glama

List active rules and detector versions

codeinspectus_list_rules
Read-onlyIdempotent

List active security detectors, engine versions, and rule packs, and check detection-database freshness to verify scanner coverage and update status.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
engineNoFilter to one engine's rules/detectors.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYes
enginesYes
custom_rulesYes
engine_setupYes
native_packsYes
trivy_db_dateNo
custom_rule_countYes
detection_db_dateYes
advisory_databasesYes
detection_db_versionYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 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"
      +]
  2. First observedv0.2.1

TDQS

A3.8/5.0
Behavior3/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 well covered. The description adds useful specificity about the returned inventory categories, but discloses no additional behavioral caveats such as rate limits, freshness semantics, or output size. This is adequate given the strong 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?

The description is a single information-dense sentence that enumerates the full scope without fluff. It could be split or trimmed slightly, but every listed item adds meaning and nothing is repeated from the schema.

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?

With one optional parameter, a full output schema, and strong read-only/idempotent annotations, the description is complete for this inventory-query tool. It covers all major categories of returned data, and the schema handles engine filtering, leaving no significant gap.

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%: the only parameter, 'engine', has a descriptive enum and clear filtering semantics. The description does not mention this filter, but the schema carries the parameter meaning entirely, 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?

The description uses a specific verb ('List') with an explicit resource scope: active detectors, engine versions, database freshness, advisory provenance, AI-code rules, and detector packs. This clearly distinguishes it from sibling tools like scan, rescan, setup, and compliance_report.

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?

The description implies this is the inventory/inspection tool by emphasizing 'active' and 'currently shipped,' but it does not explicitly state when to use it versus alternatives or provide any exclusions. Usage context is present but only by implication.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Synvoya/codeinspectus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server