Skip to main content
Glama

import_page_file

Destructive

Download a file from a direct HTTP or HTTPS URL into this page's permanent file library. Supports images, fonts, PDFs and other files; preserves the original bytes. Returns fileId, filename, content type, description and our permanent CDN URL. Optional font metadata returns a settings.fonts entry. Repeated imports of the same URL reuse the saved file and replace its font metadata when supplied. Imported files are owned by the page and copied when the event is cloned. Does not edit or publish the document.

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": {
      "target": "<target>",
      "url": "<url>",
      "description": "<description>"
    },
    "name": "import_page_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesDirect HTTP or HTTPS file download URL
fontNoOptional font metadata. When supplied
targetYesTarget page resource; kind must be page.
fileNameNoOptional filename. Defaults to the download filename or URL path
descriptionYesDescribe the file and its intended use so it can be reused in future edits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / target / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / target / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / target / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, the description discloses ownership ('owned by the page'), clone semantics ('copied when the event is cloned'), idempotency-like behavior on repeated URLs, and metadata replacement on re-import. That is meaningful context the destructiveHint/openWorldHint annotations cannot express. It does not dwell on what 'destructive' means here, but the replacement note partially covers it.

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 clause, followed by supported types, return shape, and edge-case behaviors in a logical order. Seven short sentences are dense but each carries distinct information; a small amount of overlap exists between the returned fields and the schema.

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?

With no output schema, the description compensates by naming the return fields (fileId, filename, content type, description, CDN URL) and explaining font metadata output and clone/copy semantics. For a five-parameter tool with a nested target object, this is close to complete, though it does not clarify details of the target.kind constraint beyond the schema or error behavior for non-HTTP URLs.

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 coverage is 100%, so the baseline is 3. The description adds real meaning only for the font parameter ('returns a settings.fonts entry') and for the description field's reuse intent, which the schema already states nearly verbatim; url, target, and fileName are not illuminated further.

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 opening sentence gives a specific verb ('Download'), a precisely bounded source ('direct HTTP or HTTPS URL'), and a destination ('this page's permanent file library'), plus a list of supported file kinds. It is not explicitly contrasted with siblings like store_page_file or import_email_image, so the agent must infer the difference from the URL framing.

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?

The closing sentence 'Does not edit or publish the document' and the note about repeated imports give negative and repeat-call guidance, but there is no explicit statement of when to use this over store_page_file or import_google_font. Usage is implied by the URL requirement rather than directed.

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.