Skip to main content
Glama
PortfolioKB

mcp-safe-fetch

by PortfolioKB

fetch_clean

Fetch a URL, sanitize against injection attacks, limit character count, and return cleaned text along with an audit log.

Instructions

Fetch a URL and return injection-sanitized, size-capped text.

Args: url: an http/https URL to fetch. max_chars: per-fetch character cap (clamped to a hard ceiling).

Returns a dict with the cleaned content and an audit of what was done.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
max_charsNo
Behavior3/5

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

The description discloses that the tool performs injection sanitization and size capping, and returns a dict with cleaned content and an audit. However, it lacks details on error behavior, rate limits, or side effects, and there are no annotations to supplement.

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 concise: a single sentence for purpose followed by two bullet-point-like arg descriptions. Every sentence adds value, and the key action is front-loaded.

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?

The description omits details about the return value structure (e.g., what 'audit' contains), error handling, and supported URL schemes. Given no output schema, this leaves gaps in understanding the tool's full behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description compensates by explaining that 'url' must be an http/https URL and 'max_chars' is a per-fetch cap clamped to a hard ceiling. This adds significant meaning beyond the schema titles.

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 clearly states the tool fetches a URL and returns injection-sanitized, size-capped text, which is a specific verb-resource pair. However, since no sibling tools are provided, it cannot be evaluated for differentiation, hence slightly less than perfect.

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?

The description provides no guidance on when to use this tool versus alternatives, nor does it mention any preconditions or exclusions. It simply describes what the tool does without context for selection.

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/PortfolioKB/mcp-safe-fetch'

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