Skip to main content
Glama

Download a direct provider asset file

asset_download_file
Idempotent

Download allowlisted asset files from supported providers into guarded local storage after license acknowledgement, with streaming size limits and no overwrites.

Instructions

Download a file URL returned by Poly Haven, ambientCG, or Smithsonian MCP tools, or a curated Game-icons.net/Kenney direct ZIP, into guarded local storage after license acknowledgement. Provider hosts and URL shapes are allowlisted, redirects are revalidated, files are streamed with a byte cap, and existing files are never overwritten.

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": {
      "provider": "<provider>",
      "url": "<url>",
      "fileName": "<fileName>",
      "acceptLicense": "<acceptLicense>"
    },
    "name": "asset_download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
licenseNo
fileNameYes
providerYes
projectRootNo
acceptLicenseYesRequired acknowledgement that the caller reviewed and accepts the license metadata returned by the provider's search/detail/file tools.
allowNonCommercialNo

Output Schema

NameRequiredDescriptionDefault
pathYes
sha256Yes
fileNameYes
providerYes
sizeBytesYes
sourceUrlYes
sizeMetersNo
alreadyExistedYes
licenseAcknowledgedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.2
    • addedInput schema / properties / allowNonCommercial
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / license
      Added value: +{
      +  "properties": {
      +    "attribution": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "author": {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    "name": {
      +      "maxLength": 200,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "sourceUrl": {
      +      "format": "uri",
      +      "maxLength": 2048,
      +      "type": "string"
      +    },
      +    "url": {
      +      "format": "uri",
      +      "maxLength": 2048,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / projectRoot
      Added value: +{
      +  "maxLength": 4096,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "polyhaven",
      -  "ambientcg",
      -  "smithsonian",
      -  "game-icons",
      -  "kenney"
      -]New value: +[
      +  "polyhaven",
      +  "ambientcg",
      +  "smithsonian",
      +  "game-icons",
      +  "polyfork",
      +  "kenney"
      +]
    • changedOutput schema / properties / provider / enum
      Previous value: -[
      -  "polyhaven",
      -  "ambientcg",
      -  "smithsonian",
      -  "game-icons",
      -  "kenney"
      -]New value: +[
      +  "polyhaven",
      +  "ambientcg",
      +  "smithsonian",
      +  "game-icons",
      +  "polyfork",
      +  "kenney"
      +]
    • addedOutput schema / properties / sizeMeters
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "x": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "y": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "z": {
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "x",
      +    "y",
      +    "z"
      +  ],
      +  "type": "object"
      +}
  2. Addedv0.1.1

TDQS

A3.6/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: license acknowledgement is required, provider hosts and URL shapes are allowlisted, redirects are revalidated, downloads are streamed with a byte cap, and existing files are never overwritten. These details align with the annotations and provide real operational context for a write-capable external download.

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?

The description is a single front-loaded sentence with no filler, and it efficiently packs security and licensing behavior into that space. It is dense but readable; the many clauses are relevant rather than redundant.

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?

The tool is moderately complex with nested parameters and low schema coverage, but it has annotations and an output schema. The description does well on security, licensing, and overwrite behavior, but it is incomplete for the parameter surface an agent must supply.

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

Parameters2/5

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

Schema description coverage is very low at 14%, so the description carries most of the burden for explaining seven parameters. It adds meaning for URL provenance, provider sources, license acknowledgement, and overwrite behavior, but leaves projectRoot, allowNonCommercial, fileName handling, and the nested license object's fields unexplained.

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 starts with a specific verb and resource: download a file URL from named provider tools into local storage. It clearly identifies the operation as a file download rather than a search or metadata fetch, though it does not explicitly contrast itself with sibling tools such as asset_download or bundle-entry downloads.

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 implies when to use the tool by saying the URL must come from Poly Haven, ambientCG, Smithsonian, Game-icons.net, or Kenney sources. However, it gives no explicit when-not guidance and does not name alternatives or explain how it differs from adjacent download tools.

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