Skip to main content
Glama

mcp-audit — MCP static scan (SARIF + CI)

scan_to_sarif

扫描本地路径或公开仓库并直接返回 SARIF 2.1.0 文档,可上传 GitHub code scanning

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

Input Schema

NameRequiredDescriptionDefault
pathNo
repo_urlNo
include_testsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and mostly does not meet it. It discloses the output format, but says nothing about whether path and repo_url are mutually exclusive, what happens when both or neither are supplied (both default to empty string), whether a network/repo fetch is required, scan duration, or failure modes.

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?

A single sentence with no filler, and the most important facts (inputs and output format) are front-loaded. It is efficient, though the brevity is partly the cause of the parameter and behavioral gaps.

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

Completeness2/5

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

The presence of an output schema means return values need not be explained, but the tool still has three entirely undocumented parameters with a 0% coverage schema, no annotations, and unstated interaction between the two input modes. For a scanner that can operate over two very different targets, this leaves an agent guessing at invocation details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and does so only partially. 'Local path or public repo' loosely maps onto path and repo_url but gives no format examples or precedence rule, and include_tests 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?

The description states a specific verb (scan) over a specific resource set (local path or public repo) and names the output artifact (a SARIF 2.1.0 document), which tells an agent exactly what the tool produces. It stops short of differentiating itself from the sibling scan_public_repo, whose scope plainly overlaps with the repo_url parameter here.

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?

Usage is only implied: the note that the result can be uploaded to GitHub code scanning suggests the intended context, but there is no explicit when-to-use statement, no when-not, and no guidance on choosing this over scan_public_repo or scan_mcp_server. An agent must infer the selection rule from the output format alone.

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