Skip to main content
Glama
huoshuiai42

huoshui-fetch

by huoshuiai42

fetch_with_headers

Fetch web page content using custom HTTP headers. Specify URL, headers, and optional timeout to retrieve status, content, and response details.

Instructions

Fetches a URL with custom headers.

Args: url: The URL to fetch headers: Dictionary of custom headers timeout: Request timeout in seconds (default: 30)

Returns: Dictionary containing status_code, content, headers, encoding, and error (if any)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
headersYes
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It discloses the return dictionary structure (status_code, content, headers, encoding, error) and timeout default, but does not mention HTTP method, redirect handling, error behavior, or safety implications. This is moderate transparency, but lacks richer detail.

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 and well-structured, with a one-sentence purpose followed by clearly labeled Args and Returns sections. Every line adds value, no fluff, and the purpose is front-loaded.

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?

The description covers the tool's purpose, all parameters, and return values. It does not mention alternatives or edge cases, but given the tool's simplicity and the presence of an output schema (not shown), it is fairly complete. The lack of usage guidance is the main gap.

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?

Given 0% schema description coverage, the description compensates by explaining each parameter's meaning: url, headers as a dictionary, and timeout with unit and default value It also clarifies the return structure. While not extremely detailed, it provides essential semantics beyond the bare schema titles.

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?

The description clearly states a specific verb and resource: 'Fetches a URL with custom headers.' This distinguishes it from sibling tools like fetch_url by highlighting the custom headers feature. The purpose is unambiguous.

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?

No guidance is provided on when to use this tool versus alternatives such as fetch_url or other extraction tools. The description implies usage when custom headers are needed, but does not explicitly state when to choose this tool over siblings, nor does it mention any exclusions.

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/huoshuiai42/huoshui-fetch'

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