Skip to main content
Glama

security-preflight

Inline source indicator scan

scan_source

$1 bounded inline VulnCanon source scan; indicators, not proven exploits.

Direct MCP requires the checkout caller and verified fixed-order session. At most 64 KiB, 2000 lines, 4096 characters per line. No model calls, repository fetching or code execution. Returns a redacted signed receipt.

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": {
      "agent_id": "<agent_id>",
      "source": "<source>"
    },
    "name": "scan_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesThe source code to scan, inline. At most 64 KiB.
agent_idYesId of the agent or server being checked.
session_idNoThe verified checkout session id. Required for direct MCP calls.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only give the boolean hints (readOnly=false, destructive=false, openWorld=false, idempotent=false); the description adds hard limits (64 KiB, 2000 lines, 4096 chars/line), explicit negative capabilities (no model calls, no repo fetching, no code execution), and the output nature ('redacted signed receipt'). It explains the constraints an agent must respect, though it does not explain why the call is non-read-only/non-idempotent beyond the receipt hint.

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 definition is short, front-loads the core purpose, and uses efficient fragment lists for limits and negative capabilities. Minor deductions for opaque fragments ('$1 bounded') that cost a reader more than they convey.

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?

With an output schema present, the description need not document return values, and it covers inputs' size limits, session prerequisite, and execution boundaries. The remaining gap is semantic: what an 'indicator' looks like and how a caller should interpret a signed receipt, which is only hinted at.

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 coverage is 100%, so all three parameters are already documented, and the baseline of 3 applies. The description adds only marginal meaning, mainly the 'fixed-order' qualifier on the session and the notion of a 'checkout caller' that is not expressed in the schema.

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 first clause gives a concrete verb and resource ('bounded inline ... source scan') and adds a scope qualifier ('indicators, not proven exploits') that tells an agent what class of findings to expect. It is clear but relies on unexplained jargon ('$1', 'VulnCanon') and never contrasts itself with siblings like screen_injection or security_preflight.

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 'Direct MCP requires the checkout caller and verified fixed-order session' line gives a real prerequisite for one invocation path, which is useful. However, there is no guidance on when to choose this over screen_injection/security_preflight, nor any statement of when not to use it (e.g., source too large, non-inline sources).

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.