Skip to main content
Glama

Prompt safety lint

prompt-lint
Read-only

Flags prompt-injection phrasing, chat-template tokens, hidden characters, PII and secrets per line, and lists {{variables}}. Rule-based, no model call; flagged text is never echoed. Returns { ok, findings: [{ kind, severity, line, detail }], counts: { high, medium, low }, variables } Price: 1 credit (1 credit = 1 US cent) per successful call; input that does not match the schema is rejected before billing.

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": {
      "prompt": "<prompt>"
    },
    "name": "prompt-lint"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesPrompt or template text to check, up to 60,000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds substantial context beyond that: execution is rule-based with no model call, flagged text is never echoed (a privacy guarantee), the return shape is spelled out, and billing/validation behavior is disclosed (1 credit per successful call, schema-invalid input rejected before billing). Those are exactly the traits an agent cannot see in structured fields.

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 capability and mechanism are front-loaded in the first sentence, followed by return shape, pricing, and validation behavior—each item is actionable. The pricing sentence is dense and hangs a somewhat run-on billing rule onto the paragraph, but nothing is truly redundant.

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 no output schema, the description correctly compensates by specifying the return object shape (ok, findings, counts, variables). Input size limits, billing, and rejection behavior are covered; only secondary details such as rate limits or typical finding volume are absent, which is acceptable for a single-parameter lint tool.

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% and the single parameter already carries its own description with the 60,000-character limit, so the schema does the heavy lifting. The description's mention of "per line" and "lists {{variables}}" hints at how the input is interpreted but adds no syntax or format guidance beyond the schema, matching the baseline 3 for a fully-documented single parameter.

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 gives a specific verb-plus-resource ("Flags prompt-injection phrasing, chat-template tokens, hidden characters, PII and secrets per line") and enumerates exactly which checks run, plus the rule-based/no-model-call mechanism. It never names or distinguishes itself from the similarly-named sibling prompt-inject-scan, so the agent must infer the overlap, which keeps it short of a 5.

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 only implied: the input is "prompt or template text" and the tool checks it, so an agent can infer it applies before shipping or rendering a prompt. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as prompt-inject-scan, so the agent gets no routing guidance.

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.

Resources