Skip to main content
Glama
pebblehost-mcp
by numycode

Read a file

read_file
Read-only

Reads text files such as server.properties, plugin configs, or log files from a hosted Minecraft server; use tail_lines to limit long logs. Binary files are not supported.

Instructions

Returns the content of a text file such as server.properties, a plugin config, or logs/latest.log. Output is cut at 100000 characters; use tail_lines for long logs. Binary files (jars, worlds) cannot be read.

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>"
    },
    "name": "read_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.
tail_linesNoReturn only the last this many lines, for logs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description usefully adds the 100,000-character truncation ceiling and the refusal of binary files, which are genuine behavioral traits. It says nothing about what happens on a missing file, permission errors, or whether hidden paths are readable, so it stops short of rich disclosure.

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?

Three short sentences, front-loaded with what is returned, then the truncation limit and the binary exclusion. No filler or repetition of the title.

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?

With no output schema, the description correctly carries the burden of describing the return value and its truncation. The only gap is error behavior and what to do when a path is a directory rather than a file.

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 paths, server selection and tail_lines are already documented. The description still adds intent for tail_lines ("for long logs") and reinforces the truncation interaction with long outputs, giving it a modest edge over the schema alone.

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 precise verb and resource ("Returns the content of a text file") with concrete examples (server.properties, plugin config, logs/latest.log) and a scope limit that separates it from download or listing tools: binary files (jars, worlds) cannot be read.

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 actionable routing for the common case ("use tail_lines for long logs") and an explicit when-not (binary files). It never names a sibling alternative such as get_file_download_link or list_files, so the agent must infer which tool to use for non-text artifacts or directory contents.

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