Skip to main content
Glama

Lint source for security issues

lint_security_code

Scans a bounded source code snippet with sentinel-lint rules to detect security issues. Runs safely in an isolated temporary file without executing the code.

Instructions

Run sentinel-lint rules against one bounded source snippet in an isolated temporary file. The scanner never executes the snippet, never follows symlinks, and the temporary file is deleted before the tool returns.

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": {
      "code": "<code>"
    },
    "name": "lint_security_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
filenameNo
maxFileSizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does well on safety mechanics: the snippet is never executed, symlinks are not followed, and the temp file is deleted before return. It says nothing about result format (findings, severities), error behavior, or any rate/permission constraints, which matters given there is no output schema.

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 tight sentences with the core action first and the safety guarantees following. No filler, no restating the name, nothing that could be cut.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and 0% parameter coverage, the description should do more. It omits what the caller gets back (a findings list? an exit status?), how 'filename' affects scanning, and what happens on oversized input — all material for a 3-parameter scanning tool.

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?

Schema description coverage is 0% and the description explains none of the three parameters. 'One bounded source snippet' loosely gestures at the code parameter and size caps, but the purpose of 'filename' (language hint? extension-based rule selection?) and 'maxFileSize' is left entirely undefined.

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 opens with a specific verb and resource: run sentinel-lint rules against one bounded source snippet in an isolated temporary file. That is far more informative than the title and scopes the operation to a single snippet. It never names or contrasts a sibling tool (e.g. the audit_* family), so it stops short of full differentiation.

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

Usage Guidelines2/5

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

There is no explicit statement of when to choose this over the audit_* or redact_log siblings, and no prerequisites or exclusions. The phrase 'one bounded source snippet' weakly implies the tool is for a single snippet rather than a whole tree, but that is inference, not guidance.

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