Skip to main content
Glama

store_page_file

Copy an uploaded file from an owned upload into permanent page storage, including images, fonts, PDFs and other files. Returns fileId and a permanent public URL for image sources, settings.fonts or links. Repeated calls with the same attachment return the saved file. Does not edit or publish the page 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>",
      "uploadId": "<uploadId>",
      "description": "<description>"
    },
    "name": "store_page_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesTarget page resource; kind must be page.
uploadIdYesFinalized owned upload ID.
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.6/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint=false, destructiveHint=false and openWorldHint=true, the description still adds real value: it discloses the return shape (fileId plus a permanent public URL) in the absence of an output schema, and it explains the dedupe behavior of repeated calls. It also clarifies the write is additive and does not mutate the page document. One caveat: the 'repeated calls return the saved file' statement sits in mild tension with idempotentHint=false, which an attentive agent may notice.

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?

Four short sentences, front-loaded with the operation and with the return values and scope exclusion following in logical order. Every sentence carries information; no filler or restatement of the tool name.

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 a mutation with a nested target object whose kind enum includes email and wallet variants, but the description speaks only of page storage, leaving the non-page targets unexplained despite the schema permitting them. Return information is well covered even without an output schema. The gap between the described scope and the actual target enum is the main incompleteness.

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% and all three parameters are documented, so the schema carries the parameter burden. The description reinforces meaning for uploadId ('uploaded file from an owned upload', and 'owned' matters) and the target scope, but adds nothing about the required 'description' parameter or the nested target object's pageId/draftId/pageSlug fields. Baseline 3 is appropriate when the schema is this complete.

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 names a specific verb and resource: copying an uploaded file from an owned upload into permanent page storage, with concrete examples (images, fonts, PDFs). It also carves out adjacent capabilities by stating it does not edit or publish the page document, which separates it from edit_page_document and publish_page_draft. It stops short of naming the closest sibling (import_page_file) or the list/view counterparts, so routing between the file tools still requires inference.

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?

Usage context is implied clearly: use it when an uploaded attachment needs to become permanent so it can be referenced from image sources, settings.fonts or links. The negative clause 'Does not edit or publish the page document' provides one useful boundary. However, no alternative tool is named and no precondition is spelled out beyond 'owned upload' in the schema, so an agent must decide on its own between this and import_page_file or list_page_files.

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.