Skip to main content
Glama

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. Changed3 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"Id of the agent or server being checked."
    • addedInput schema / properties / session_id / description
      Added value: +"The verified checkout session id. Required for direct MCP calls."
    • addedInput schema / properties / source / description
      Added value: +"The source code to scan, inline. At most 64 KiB."
  2. Changed1 schema field changed
    • addedInput schema / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Session Id"
      +}
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare a safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the description carries useful extra weight: it discloses hard bounds (64 KiB, 2000 lines, 4096 chars/line), that no model calls, repository fetching or code execution occur, and that a redacted signed receipt is returned. That is substantive context beyond the structured fields, though it leaves the session/auth failure mode uncharacterized.

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 and front-loads the core identity, then the constraints. Notation like '$1' and 'VulnCanon' is unexplained and costs a little clarity, but there is no filler.

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, return values need not be described, and the description covers scope, size limits, side-effect exclusions and the receipt. Complete enough for a bounded scan tool; only the meaning of 'indicators' in the output is left to the output schema.

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 description restates the 64 KiB limit and the session requirement that the schema already documents, so it adds little new meaning per parameter. Baseline 3 applies when the input schema does the explanatory work.

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 and resource: an inline source scan that reports indicators rather than proven exploits, tied to VulnCanon. An agent knows exactly what the tool does, but nothing in the text differentiates it from siblings like screen_injection or security_preflight, so selection still requires inference from names.

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 implied through preconditions rather than stated: 'Direct MCP requires the checkout caller and verified fixed-order session' tells the agent when the call will succeed but not when this tool is the right choice over screening or preflight tools. No explicit when-not or alternative routing is given.

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.