Skip to main content
Glama

Read Game Server File

read_gameserver_file
Read-onlyIdempotent

Read text content of a gameserver file (UTF-8 text up to 2 MB). Returns the file text as text and its revision (send it back as expectedRevision when writing). Images, archives, compiled or encrypted scripts and other binary files cannot be read and return an error: do not retry them, use list_gameserver_files to see names and sizes instead. Credential values (passwords, tokens, connection strings) come back as [configured]; write the placeholder back unchanged to keep the stored value. 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>",
      "path": "<path>"
    },
    "name": "read_gameserver_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
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.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavior beyond them: a 2 MB cap, the error-without-retry contract for binary content, credential values returned as [configured] with write-back semantics, and the revision round-trip. It does not discuss rate limits or what an error response looks like structurally, but the safety and side-effect profile is well covered.

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?

Front-loaded with the core action and format limits, then the error/no-retry rule, then credential handling, then the auth prerequisite. Each sentence carries distinct information, though the credential and Pass sentences make it longer than strictly necessary for a read operation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description compensates by naming the return fields (`text` and `revision`) and explaining how `revision` is reused as `expectedRevision`. With three parameters, a clear failure mode, and a stated auth requirement, an agent has everything needed to call this correctly.

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 67% and the schema already documents `serviceId` (including numericId acceptance) and the `scope` enum semantics. The description adds no new meaning about `path` or `serviceId` beyond the schema, so it sits at the baseline where structured fields do the heavy lifting.

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 and resource ("Read text content of a gameserver file") plus the accepted format and size bound (UTF-8 text up to 2 MB), and names the sibling list_gameserver_files as the alternative for non-text files. An agent can distinguish this from mutate_gameserver_file and the listing tool without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit exclusions (images, archives, compiled/encrypted scripts, binary files), an explicit do-not-retry instruction, and routes to list_gameserver_files for names and sizes. It also states the prerequisite (active ZapX Pass) and the read/write pairing via `revision`.

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