Skip to main content
Glama

scan_code_sarif

Statically scan MCP servers, TS/JS/Python agents, iOS AppIntents, and Android AppFunctions to emit OASIS SARIF 2.1.0 security findings.

Instructions

Deterministic static scanner for MCP servers, TS/JS/Python agents, iOS AppIntents, and Android AppFunctions emitting OASIS SARIF 2.1.0. Cost: $0.25 USDC via x402.

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": {
      "files": "<files>"
    },
    "name": "scan_code_sarif"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It usefully discloses determinism, the emitted format, and a real operational constraint — $0.25 USDC payment via x402, which is a genuine auth/cost prerequisite. Beyond that it says nothing about whether scanning is local or remote, whether code is uploaded, what happens on unsupported inputs, or what errors look like, which is thin for a paid mutation-adjacent operation.

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

Conciseness5/5

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

Two short sentences with zero filler: capability and targets first, then the cost constraint. Nothing is repeated and nothing is buried.

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?

The output side is adequately covered because naming OASIS SARIF 2.1.0 tells the agent what to expect without an output schema. The input side is not: with no annotations, no output schema, and a single opaque object-array parameter, the definition should explain what to put in `files`. That gap keeps it at minimum-viable rather than complete.

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?

There is exactly one required parameter, `files`, typed as an array of untyped objects with 0% schema description coverage, so the schema itself is silent on the shape of each element. The description never mentions `files` at all — no indication of whether each object needs a path, content, language, or encoding — leaving the agent unable to construct a valid call from the definition alone.

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 names a specific verb+resource ('Deterministic static scanner'), enumerates supported targets (MCP servers, TS/JS/Python agents, iOS AppIntents, Android AppFunctions), and states the output format (OASIS SARIF 2.1.0). That is enough for an agent to tell what it does; sibling differentiation is absent but the siblings listed are unrelated tasks, so it costs little.

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?

Implicit guidance comes from the target list — an agent can infer it should use this for scanning those four codebases — and the price line sets a cost expectation. However there is no explicit statement of when to prefer this over doing something else, no prerequisites, and no exclusions (e.g. unsupported languages or max payload size).

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