Skip to main content
Glama

get_file

Fetches a file from a URL and returns it in a format suitable for FastMcP.

This tool can be used to fetch any file type, including images, PDFs, etc. The framework will handle the encoding and packaging of the file.

Scope: one URL per call, with the result returned into the conversation. For many URLs, a whole site, output written to a file or directory, resumable jobs, or a scheduled re-run, use the ScrapingBee CLI instead — scrapingbee scrape --input-file urls.txt --output-dir results, scrapingbee crawl URL --save-pattern ..., scrapingbee schedule --every. This server has no batch, crawl, file-output or scheduling equivalent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL of the file to fetch.
deviceNodesktop (default) or mobile.desktop
cookiesNoSemicolon-separated cookies to send to the target.
timeoutNoRequest timeout in milliseconds (1000–140000, default 140000).
render_jsNoWhether to use headless-browser rendering (default False).
session_idNoInteger 0–10000000 to reuse an IP for up to 5 minutes.
country_codeNoISO 3166-1 alpha-2 country code (e.g. "fr", "us") to route the request through an IP in that country. Only takes effect when premium_proxy is True.
custom_googleNoSet to True if the url is a google domain in the following format: <subdomain>.google.<top-level-domain> (Example: translate.google.com, mail.google.com, www.google.co.in etc)
premium_proxyNoWhether to use a premium proxy for the request. Use it only if you are getting blocked by the website.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that output is returned into the conversation, that the framework handles encoding/packaging, and that batch/crawl/file-output/scheduling are unsupported — all useful negative traits. It omits permission/auth requirements, rate limits, failure behavior, and payload/size limits for large files.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first sentence, and the usage constraints follow in a logical order. The four CLI examples plus the closing 'This server has no batch, crawl, file-output or scheduling equivalent' are somewhat redundant with each other, costing a little efficiency.

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 9-parameter tool with no annotations and no output schema, the description covers scope and explicit non-capabilities but leaves out return-shape expectations, error handling, and auth prerequisites. It is adequate, not complete.

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% across all 9 parameters, so the schema already documents defaults, ranges, and semantics thoroughly. The description adds only 'any file type' and 'one URL per call,' which do not extend meaning beyond the schema. Baseline 3 is appropriate.

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 first sentence gives a specific verb+resource ('fetches a file from a URL') and states the return contract ('format suitable for FastMcP'). The second sentence clarifies it works for any file type including images and PDFs, which implicitly separates it from page-text/HTML siblings, but it never names those siblings explicitly.

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?

It gives clear 'when-not' guidance for the CLI (batch, crawl, file-output, scheduling) with concrete command examples, which is genuinely useful. However, it offers no routing guidance against the in-server siblings an agent would actually weigh it against (get_page_text, get_page_html, get_screenshot, extract_page_data), leaving the most likely confusion unresolved.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources