Skip to main content
Glama
pebblehost-mcp
by numycode

Create or overwrite a file

write_file
DestructiveIdempotent

Create or overwrite an entire text file on a hosted Minecraft server. Use it for full-file writes; edit existing sections with edit_file instead.

Instructions

DESTRUCTIVE: replaces the file's entire content if it exists. Creates or overwrites a text file. To change part of an existing file, use edit_file instead. The server and plugins usually read config changes only after a reload or restart.

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": {
      "path": "<path>",
      "content": "<content>"
    },
    "name": "write_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile path, relative to the server's root directory, such as "server.properties" or "plugins/LuckPerms/config.yml".
serverNoServer identifier or UUID. Omit to use the configured server (PEBBLEHOST_SERVER_ID); other servers are refused unless PEBBLEHOST_ALLOW_ALL_SERVERS is set.
contentYesThe complete new content of the file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint, idempotentHint and openWorldHint, so the safety profile is covered. The description still adds real value beyond them: it specifies that the file's entire content is replaced when it exists, and that config changes are usually only picked up after a reload or restart. It does not discuss permissions, backup/rollback options, or failure behavior, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences with the destructive warning front-loaded, then purpose, then the sibling routing, then the operational caveat. Nothing is repeated and no sentence is filler.

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 three-parameter write tool with no output schema, the description covers the mutation semantics, the alternative, and the post-write caveat an agent needs to act correctly. The remaining gap is that it says nothing about what a successful or failed call returns, which is minor given the annotations and complete schema.

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% and the schema text is unusually rich, documenting path examples, the server fallback via PEBBLEHOST_SERVER_ID and the ALLOW_ALL_SERVERS escape hatch, and that content must be the complete file body. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

The description names a specific verb and resource ("Creates or overwrites a text file") and immediately qualifies the mode as whole-file replacement. It explicitly contrasts with edit_file, so an agent can separate this from the partial-edit sibling without inspecting schemas.

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?

It states the alternative and the condition that selects it: use edit_file to change part of an existing file, use this for full creation/overwrite. It adds a post-write operational caveat (reload/restart needed for config changes), which further informs when this call is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.