Skip to main content
Glama
Shrike-Security

Shrike Security MCP Server

scan_file_write

Scans file write operations for security threats before execution, checking for sensitive paths, path traversal, PII, secrets, and malicious code patterns to prevent data exposure.

Instructions

Scans a file write operation before execution for security threats.

Checks:

  • Sensitive file paths (.env, credentials, SSH keys, certificates)

  • Path traversal attacks (../, system directories)

  • PII in content (SSN, credit cards, emails)

  • Secrets in content (API keys, passwords, tokens)

  • Malicious code patterns (reverse shells, fork bombs)

Returns:

  • blocked: true/false

  • threat_type: path_traversal, secrets_exposure, etc.

  • severity: critical/high/medium/low

  • confidence: high/medium/low

  • guidance: actionable explanation

  • request_id: unique identifier

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe target file path to write to
contentYesThe content to be written to the file
modeNoWrite mode (default: overwrite)
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well by detailing behavioral traits: it specifies the security checks performed (e.g., sensitive paths, PII), the return structure (blocked status, threat types, severity), and that it operates pre-execution. It lacks explicit info on rate limits or auth needs, but covers core functionality clearly.

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?

The description is appropriately sized and front-loaded, starting with the core purpose, followed by a bulleted list of checks and returns. Every sentence adds value without redundancy, making it efficient and easy to parse.

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?

Given the tool's complexity (security scanning with multiple checks), no annotations, and no output schema, the description is largely complete: it explains what the tool does, the checks performed, and the return values. However, it could benefit from more context on error handling or integration details, slightly reducing completeness.

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?

The input schema has 100% description coverage, providing clear details for path, content, and mode parameters. The description does not add meaning beyond this, as it focuses on the scanning process and outputs rather than parameter specifics, aligning with the baseline score when schema coverage is high.

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?

The description clearly states the tool's purpose with a specific verb ('scans') and resource ('file write operation'), and it distinguishes itself from sibling tools by focusing on file write security scanning rather than threat intelligence, reporting, or scanning other types of content like prompts, responses, SQL queries, or web searches.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implicitly indicates when to use this tool—before executing a file write operation to check for security threats. However, it does not explicitly state when not to use it or name alternatives among sibling tools, such as when scanning other data types (e.g., using scan_prompt for prompts).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Shrike-Security/shrike-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server