Skip to main content
Glama

Edit Game Server File

mutate_gameserver_file
Destructive

Create, write, upload, rename, delete, move or copy a gameserver file or folder. write takes text; upload takes one binary file as contentBase64 (max. 2 MB, replaces an existing file, e.g. a DLL of a resource update; archives are not extracted). move/copy put entries into an existing destination folder and never overwrite. Destructive actions (write, upload, rename, delete, move) require confirm=true. Requires an active ZapX Pass (see server instructions).

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": {
      "serviceId": "<serviceId>",
      "action": "<action>"
    },
    "name": "mutate_gameserver_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile or folder to act on (required except for move/copy given `paths`). For move/copy: the single entry to transfer. For upload: the full target path including the file name; missing parent folders are created.
pathsNomove/copy: several entries to transfer at once (overrides path).
scopeNoWithout scope paths start at the server root (as `list_gameserver_files` without scope shows them); `config`/`active` resolve paths from the game data root; `savegame` additionally restricts to savegame paths. Read and write a file with the same scope.
actionYes
confirmNo
contentNowrite/create_file: the text content.
newNameNo
serviceIdYesID of the Gameserver: the "id" field from list_account_services or list_gameservers (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here.
destinationNomove/copy: existing folder the entries go into, keeping their names. Nothing is overwritten: a taken name or a missing folder refuses the request.
contentBase64Noupload: the file content base64 encoded (standard alphabet). For binary files such as DLLs, JARs or images that `write` cannot carry. One file per call, max. 2 MB decoded; an existing file at `path` is replaced. Archives are stored as they are, not extracted.
expectedRevisionNo`revision` returned when the file was read. With action `write` the write is refused (409 file_changed) when the file changed since; re-read and retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "write",
      -  "create_file",
      -  "create_dir",
      -  "rename",
      -  "delete",
      -  "move",
      -  "copy"
      -]New value: +[
      +  "write",
      +  "upload",
      +  "create_file",
      +  "create_dir",
      +  "rename",
      +  "delete",
      +  "move",
      +  "copy"
      +]
    • addedInput schema / properties / content / description
      Added value: +"write/create_file: the text content."
    • addedInput schema / properties / contentBase64
      Added value: +{
      +  "description": "upload: the file content base64 encoded (standard alphabet). For binary files such as DLLs, JARs or images that `write` cannot carry. One file per call, max. 2 MB decoded; an existing file at `path` is replaced. Archives are stored as they are, not extracted.",
      +  "type": "string"
      +}
    • changedInput schema / properties / path / description
      Previous value: -"File or folder to act on (required except for move/copy given `paths`). For move/copy: the single entry to transfer."New value: +"File or folder to act on (required except for move/copy given `paths`). For move/copy: the single entry to transfer. For upload: the full target path including the file name; missing parent folders are created."
  2. Changed1 schema field changed
    • changedInput schema / properties / scope / description
      Previous value: -"`savegame` restricts to savegame paths; `config`/`active` resolve paths from the game data root."New value: +"Without scope paths start at the server root (as `list_gameserver_files` without scope shows them); `config`/`active` resolve paths from the game data root; `savegame` additionally restricts to savegame paths. Read and write a file with the same scope."
  3. Changed5 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "write",
      -  "create_file",
      -  "create_dir",
      -  "rename",
      -  "delete"
      -]New value: +[
      +  "write",
      +  "create_file",
      +  "create_dir",
      +  "rename",
      +  "delete",
      +  "move",
      +  "copy"
      +]
    • addedInput schema / properties / destination
      Added value: +{
      +  "description": "move/copy: existing folder the entries go into, keeping their names. Nothing is overwritten: a taken name or a missing folder refuses the request.",
      +  "type": "string"
      +}
    • addedInput schema / properties / path / description
      Added value: +"File or folder to act on (required except for move/copy given `paths`). For move/copy: the single entry to transfer."
    • addedInput schema / properties / paths
      Added value: +{
      +  "description": "move/copy: several entries to transfer at once (overrides path).",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "serviceId",
      -  "action",
      -  "path"
      -]New value: +[
      +  "serviceId",
      +  "action"
      +]
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, but the description adds genuinely non-obvious behavior: a 2 MB cap on uploads, replacement of an existing file, archives not being extracted, move/copy never overwriting, and the confirm gate plus ZapX Pass requirement. It does not explain what rename/delete do to conflicting names or whether deletions are reversible, leaving some mutation risk implicit.

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?

Five dense sentences with the verb+resource lead and action nuances following; almost no filler. It would read faster if the per-action rules were itemized rather than strung together in prose.

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?

For an 11-parameter, eight-action mutation tool with no output schema, the description covers write/upload/move/copy well but leaves the rename target parameter unexplained and gives no guidance on which action returns what. The scope and expectedRevision semantics are handled in the schema rather than the description, so the definition is adequate but not fully self-contained.

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 73%, and the description ties parameters to actions (content for write, contentBase64 for upload, destination for move/copy) and documents the otherwise undescribed confirm flag. Coverage gaps remain for newName (rename's target name is explained nowhere) and partially for path/paths interplay, which the schema covers instead.

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 opens with a specific verb list (create, write, upload, rename, delete, move, copy) bound to a concrete resource ('gameserver file or folder'), mirroring the action enum, so an agent immediately knows the tool's scope. It never names the read counterpart (read_gameserver_file) or the discord-bot variant, so there is no explicit sibling differentiation.

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 gives clear action-selection rules: 'write takes text' versus 'upload takes one binary file as contentBase64', and move/copy destination semantics. It also states prerequisites (confirm=true for destructive actions, an active ZapX Pass). It stops short of telling the agent when to prefer this tool over a sibling such as read_gameserver_file or the discord/vserver file mutators.

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