Skip to main content
Glama

Upload many files (images, fonts, a build)

upload_files
Destructive

Use for images, fonts and other binary files, many files at once, or a whole build (Vite/Astro/Next export): send files (text, base64 or a link), or no files to get an upload link you POST a .zip of the build to with curl. note is required: what you changed and why.

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": {
      "site_id": "<site_id>",
      "note": "<note>"
    },
    "name": "upload_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYesREQUIRED. 1–2 plain sentences: what you changed and why, e.g. "Rebuilt the menu page, added lunch prices, moved contact to the footer." The owner sees it in Ginta's editor; Ginta's own AI reads it.
filesNoFiles to add or replace. Omit to get an upload link for a .zip.
deleteNoPaths to delete.
site_idYesThe site id: the first part of the site URL, e.g. "bella-roma" for https://bella-roma.ginta.page (see list_sites).
replace_allNoThe upload becomes the whole site: files not in it are deleted (for a fresh build). Default false (merge).

Output Schema

NameRequiredDescriptionDefault
urlNoThe site's address (after an upload).
modeNo
textYesThe answer in words, the same as the text content: read it (for get_guide the whole guide, for get_site the files' contents).
checkNoGinta's visitor check of the site: forms, parts, links.
changedNoFiles changed.
commandNoWithout files: the command that uploads the build.
deletedNoFiles deleted.
noticesNoSentences to tell the owner word for word.
versionNoThe new live version (after an upload).
warningsNoThings to look at.
expires_atNo
manage_urlNoThe website in Ginta: messages, visitors, domain, payments. Give it to the owner once.
max_zip_mbNo
upload_urlNoWithout files: where to POST the .zip.
images_swappedNoOutside images that didn't load and were replaced with Ginta photos.
owner_next_stepsNoOnce per account (and once more later): what the owner gets with a plan and how to start it. Follow its instruction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / manage_url
      Added value: +{
      +  "description": "The website in Ginta: messages, visitors, domain, payments. Give it to the owner once.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / owner_next_steps / description
      Previous value: -"Once per account: what the owner gets with a plan and how to start it. Follow its instruction."New value: +"Once per account (and once more later): what the owner gets with a plan and how to start it. Follow its instruction."
  2. Changed1 schema field changed
    • changedOutput schema / properties / owner_next_steps / properties / trial / description
      Previous value: -"true = the €1 + VAT trial."New value: +"true = the €1 trial."
  3. Changed1 schema field changed
    • changedOutput schema / properties / owner_next_steps / properties / trial / description
      Previous value: -"true = the €1 trial."New value: +"true = the €1 + VAT trial."
  4. Changed1 schema field changed
    • addedOutput schema / properties / owner_next_steps
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Once per account: what the owner gets with a plan and how to start it. Follow its instruction.",
      +  "properties": {
      +    "checkout_url": {
      +      "type": "string"
      +    },
      +    "example_domain": {
      +      "type": "string"
      +    },
      +    "instruction": {
      +      "description": "How to say it.",
      +      "type": "string"
      +    },
      +    "lang": {
      +      "type": "string"
      +    },
      +    "plan": {
      +      "type": "string"
      +    },
      +    "say": {
      +      "description": "What to tell the owner, in their language.",
      +      "type": "string"
      +    },
      +    "trial": {
      +      "description": "true = the €1 trial.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "say",
      +    "plan",
      +    "trial",
      +    "checkout_url",
      +    "example_domain",
      +    "lang",
      +    "instruction"
      +  ],
      +  "type": "object"
      +}
  5. Changed2 schema fields changed
    • addedOutput schema / properties / text
      Added value: +{
      +  "description": "The answer in words, the same as the text content: read it (for get_guide the whole guide, for get_site the files' contents).",
      +  "type": "string"
      +}
    • addedOutput schema / required
      Added value: +[
      +  "text"
      +]
  6. Changed1 schema field changed
    • addedOutput schema / properties / images_swapped
      Added value: +{
      +  "description": "Outside images that didn't load and were replaced with Ginta photos.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "path": {
      +        "description": "The page or stylesheet.",
      +        "type": "string"
      +      },
      +      "photo": {
      +        "description": "The Ginta photo search put in its place (\"\" = removed, the image next to it shows).",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "The image URL that didn't load.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "url",
      +      "photo"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  7. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the description need not restate the safety profile. It does add genuinely useful behavior the annotations lack: the two-phase zip workflow (omit files, receive an upload link, POST the zip with curl) and the mandatory change note. It never warns that files are replaced/deleted or explains what a repeat upload does to existing paths, which matters for a destructive tool.

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?

A single dense sentence that front-loads the use case before describing the zip fallback and the required note; nothing is padding. It is somewhat run-on with its layered parentheticals, costing a little readability.

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?

For a five-parameter, destructive, multi-mode upload tool with an output schema and full schema coverage, the description covers the two operating modes (direct file payload vs. upload link), the note requirement, and the build-export framing. It leaves the destructive effect of replace_all/delete and path-collision behavior to the schema and annotations, which is acceptable but slightly thin for the risk profile.

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% with rich per-field descriptions, so the baseline is 3. The description only summarizes the three transport modes (text, base64, a link) and the required note at a decision level, adding convenience but no meaning beyond what the schema already documents for content, content_base64, url, replace_all and delete.

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 the concrete resource types (images, fonts, binary files, a whole Vite/Astro/Next build) and the bulk scope, so an agent can tell this is the multi-file/whole-site upload path. It does not explicitly distinguish itself from the sibling attach_image, and 'use for images' could be read as overlapping with it, so it stops short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states clear selection conditions — many files at once, binary assets, or a full build export — and gives an alternative mode with a trigger ('or no files to get an upload link you POST a .zip of the build to with curl'). It gives no exclusion telling the agent when NOT to use this (e.g. a single image where attach_image fits), so it is strong but not complete.

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