Skip to main content
Glama

import_file_from_url

DestructiveIdempotent

Fetch a remote URL and save its response body as a file in your Hatchable project, bypassing the context window. Use for importing seed data, vendor libraries, or assets. Supports public, api, migrations paths; 10 MB limit.

Instructions

Fetch a remote URL and save the response body as a project file — server-side, so the bytes never pass through your context window. Useful for seed data, vendor libs, and asset migration.

Capped at 10 MB and 10s timeout. Private/loopback addresses are rejected. Path must live under public/, api/, or migrations/, or be one of seed.sql / hatchable.toml / package.json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID
urlYesFull http(s) URL to fetch
pathYesDestination path in the project
Behavior5/5

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

Annotations already indicate destructiveHint=true (creates a file) and idempotentHint=true (safe to retry). Description adds important behavioral details: server-side fetch, 10 MB cap, 10s timeout, private/loopback rejection, path restrictions. No contradictions with annotations.

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?

Two concise paragraphs: first explains purpose and benefit, second lists constraints. Every sentence adds value, no fluff.

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?

Given no output schema, the description still feels complete: it explains the behavior, constraints, and allowed paths. Parameter count (3) is low and well-covered. No need for additional return value details.

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?

Schema description coverage is 100% but descriptions are brief ('Full http(s) URL to fetch', 'Destination path in the project'). Description adds path restrictions and URL format hints, but could add more about URL validation and path relative to what.

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?

Clearly states 'Fetch a remote URL and save the response body as a project file', with a specific verb ('import') and resource ('file from URL'). Distinguishes from sibling tools like upload_file (local file) and write_file (direct content).

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?

Explicitly notes it is 'server-side, so the bytes never pass through your context window', which is a key differentiator. Also lists constraints (10 MB, 10s timeout, rejected private addresses) and allowed paths. This helps the agent decide when to use this vs other file creation tools.

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/Woobox/hatchable-mcp'

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