Skip to main content
Glama

scan_text

Inspect untrusted markdown skill text, tool output, or JSON config snippets for hidden Unicode tags, BiDi overrides, and injection patterns before use.

Instructions

Inspect untrusted markdown skill text, tool output, or JSON config snippet for hidden Unicode tags, BiDi overrides, or injection patterns.

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": {
      "text": "<text>"
    },
    "name": "scan_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesRaw text content to scan.
labelNoOptional source label for findings.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses which threat classes are checked (Unicode tags, BiDi overrides, injection patterns), which is real behavioral information beyond the schema. However, it never states that the operation is read-only/non-mutating or what the findings look like, and with no output schema those gaps matter.

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?

A single front-loaded sentence with no filler; the object of inspection comes first and the threat classes follow immediately.

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?

For a simple two-parameter tool this is nearly sufficient, but with no annotations and no output schema the description should say what a scan returns (finding list, severity, locations) and confirm the operation is non-mutating. Those omissions leave the agent guessing about results.

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%, so both parameters are already documented in the schema. The description implies the 'text' parameter should be raw untrusted content but adds nothing about the optional 'label' parameter or expected text format; baseline 3 applies.

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?

A specific verb ('Inspect') applied to a specific resource ('untrusted markdown skill text, tool output, or JSON config snippet') with the exact threat classes named (hidden Unicode tags, BiDi overrides, injection patterns). The emphasis on raw text also implicitly separates it from the sibling scan_path, which operates on paths.

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 word 'untrusted' signals when this tool is appropriate, but there is no explicit when-to-use/when-not framing and no direct routing to scan_path or verify_lockfile. The agent must infer that this is the choice for inline text rather than a file or lockfile.

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

Deploy Server

Other Tools