Skip to main content
Glama

BlankQR

Send the files of a code's page

set_files
DestructiveIdempotent

With the key: adds, replaces or removes the files of the page a code can open (HTML, JavaScript, styles, pictures; 1 MB in total). The page starts at index.html. Afterwards set the code to the action {"kind": "page"} with set_code.

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": {
      "code": "<code>",
      "token": "<token>",
      "files": "<files>"
    },
    "name": "set_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe 7 characters at the end of the code's short address, the part after the last slash.
filesYesFiles to add or replace, or to remove. A name is letters, digits, dots, dashes and underscores with up to three folders, like "index.html" or "img/logo.png".
tokenYesThe key of the code, from the answer that made it. With an account key, "" for a code of that account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description goes beyond them by disclosing the 1 MB total size cap, the accepted content types, and that index.html is the page root. It does not say what happens to files omitted from the list or what occurs when the size cap is exceeded, which keeps it out of the top band.

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?

Three tight sentences, front-loaded with the mutation semantics and ending with the required follow-up call. The opening fragment 'With the key:' is slightly awkward phrasing for 'requires a token' but costs little.

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 3-parameter destructive write tool with full schema coverage and no output schema, the description covers constraints, entry point, and the mandatory next step. Only the treatment of pre-existing files not mentioned in the array is unaddressed.

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 coverage is 100%, so the baseline is 3; the description still adds real meaning by capping total payload at 1 MB and anchoring names to the index.html entry point, context the schema does not convey. It does not explain the remove/text/base64 precedence, which is left entirely to the schema.

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?

States a specific verb set (adds, replaces, removes) against a specific resource (the files of the page a code can open), and even names the entry point index.html. It is clearly distinguishable from the sibling set_code, which the description explicitly defers to for activation.

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?

Gives an explicit workflow: call this to populate page files, then use set_code with {"kind": "page"} afterward. It does not spell out exclusions or when not to use it, but the sequencing guidance is concrete and actionable.

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