Skip to main content
Glama

tane_read_untrusted

Read an external URL or untrusted file, remove invisible characters, and scan for indirect prompt injection patterns before use.

Instructions

Read an external URL or untrusted file, strip the built-in invisible-character range, and scan for built-in indirect prompt 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": {
      "source": "<source>"
    },
    "name": "tane_read_untrusted"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesRelative file path or http(s) URL to inspect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden. It discloses the sanitization and scanning steps, which is useful, but leaves the critical behavior unspecified: whether flagged content is blocked, returned with a warning, or errored, and whether the output is the sanitized text or a findings report. Network/auth and size/rate constraints are also unaddressed.

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?

One tightly packed sentence with the action front-loaded and zero filler. Every clause (read, strip, scan) carries distinct information an agent needs.

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 security-oriented reader with no annotations and no output schema, the definition should say what comes back (sanitized content vs. a scan verdict) and what happens on detection. Those gaps leave an agent unable to predict the response shape or failure mode, though the core action is adequately described.

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 'source' parameter is already documented as a relative path or http(s) URL. The description reinforces that the input is external/untrusted but adds no syntax, path-root, or URL constraint details beyond the schema, so the baseline of 3 applies.

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 concrete verb-plus-resource chain: read an external URL or untrusted file, strip invisible characters, and scan for injection patterns. It is specific about what the tool does, but it never names or contrasts with a trusted-read sibling, so the differentiation is inferred from the distinct delete/write siblings rather than stated.

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' and 'external URL' imply the selection condition (use this for untrusted input rather than trusted content), but no explicit when-to-use or when-not-to-use rule is given. There is no mention of alternatives or of what to do if the scan flags something.

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