Skip to main content
Glama

wick_fetch_to_file

Fetch a URL and save the raw response body to a local file for binary content like PDFs, images, archives, or audio; returns the saved path, byte count, status, and timing.

Instructions

Fetch a URL and write the raw response body to a local file. Use this for binary content that wick_fetch can't usefully return as text — PDFs, images, archives, audio, etc. Returns the saved path, byte count, status, and timing. The agent can then Read/process the file via the host filesystem (Bash, Read tool, etc.).

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": {
      "url": "<url>",
      "path": "<path>"
    },
    "name": "wick_fetch_to_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL to fetch (any content type — PDFs, images, archives, etc.)
pathYesLocal filesystem path to write the response body to. Will be created (and parent directories created) if missing. An existing file at this path will be overwritten.
respect_robotsNoWhether to respect robots.txt (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and openWorldHint=true; the description is consistent with a write, describing the body being written to disk and a returned status/byte count/timing. It adds useful post-call context (the file must then be read via the host filesystem) but leaves the overwrite and directory-creation behavior to the schema rather than surfacing the destructive edge case itself.

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?

Four short sentences, front-loaded with the action, then the selection rule, then the return contract, then the follow-on workflow. No sentence is redundant or padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by naming exactly what comes back (saved path, byte count, status, timing). Combined with full schema coverage on all three parameters, an agent has everything needed to call this correctly and use the result.

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%, with url, path, and respect_robots all documented including the overwrite warning and the default for robots. The description adds no parameter-level detail beyond that, so 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?

The description states a specific verb and resource ('Fetch a URL and write the raw response body to a local file') and explicitly demarcates scope against the sibling wick_fetch by naming the content types it can't handle. An agent can distinguish this tool from wick_fetch without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit selection condition ('Use this for binary content that wick_fetch can't usefully return as text — PDFs, images, archives, audio') and names the alternative it replaces. It also tells the agent what to do after the call, pointing to host filesystem access via Bash or the Read tool.

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