Skip to main content
Glama

AI Code Security Gate

Scan for Shadow Agents

shadow_scan

Scan logs for unregistered API keys, LLM endpoint calls and unknown external hosts. Costs 10¢. Give log_text or file_url (exactly one). Secret evidence is masked in the findings.

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

Input Schema

NameRequiredDescriptionDefault
api_keyNo
file_urlNo
log_textNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: a per-invocation cost of 10¢ and the guarantee that secret evidence is masked in findings. Annotations already cover the mutation/open-world profile (readOnlyHint=false, openWorldHint=true), so the added cost and masking disclosures are the substantive contribution. It does not describe latency, caching, or what happens on repeated scans of the same log.

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?

Four short sentences, purpose front-loaded, then cost, then the input constraint, then the privacy guarantee. No waste; the only weakness is that 'Costs 10¢' arrives without stating how the charge is settled, which briefly raises a question the text does not answer.

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?

With an output schema present, return values need not be described, and the safety/mutation profile is covered by annotations. Still missing is what api_key is for and whether the scan is idempotent or re-billed on identical input, which matters for a tool with openWorldHint=true and a stated price.

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 0%, so the description must carry parameter meaning. It clarifies the mutual-exclusivity rule between log_text and file_url, which the schema cannot express, but leaves api_key completely unexplained and gives no format hint for file_url (URL scheme, accessible storage, size limits).

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?

Names a specific verb (scan) and resource (logs) plus the three concrete finding categories: unregistered API keys, LLM endpoint calls, and unknown external hosts. An agent knows exactly what class of problem this tool surfaces, which is enough to distinguish it from unrelated siblings like escrow_create or brand_check.

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 definition gives a hard invocation constraint ('Give log_text or file_url (exactly one)') and a cost trigger ('Costs 10¢'), which shapes when an agent would call it. It never states when to prefer a sibling such as scan_code or when not to run a scan at all.

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.