Skip to main content
Glama

read_mod_config

Safely read .toml, .json, or .properties config files inside config/ using line-range pagination to inspect large mod configs without loading whole files.

Instructions

Safely read a .toml/.json/.properties config inside config/ (15KB line-range pagination).

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": {
      "instance_path": "<instance_path>",
      "config_filename": "<config_filename>"
    },
    "name": "read_mod_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_lineNo
start_lineNo
instance_pathYes
config_filenameYes

Output Schema

NameRequiredDescriptionDefault
pathYes
formatYes
contentYes
truncatedYes
total_linesYes
next_start_lineNo
returned_end_lineYes
returned_start_lineYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose read-only safety, directory scoping, supported formats, and a 15KB line-range pagination behavior. It says nothing about error behavior for invalid paths, path traversal protection, or encoding, which matters for a file-reading tool with zero annotation coverage.

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?

One compact sentence with the essential constraint front-loaded and no filler. The telegraphic style and vague qualifier 'safely' cost it a point but nothing is wasted.

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?

An output schema exists, so return values need not be described, and the core behavior (scoped read with line pagination) is conveyed. For a 4-parameter tool with 0% schema coverage it still leaves instance_path and pagination defaults undefined, which is a real gap.

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 0%, and parameter titles are the only structured hints, so the description must compensate. It partially does: it restricts config_filename to .toml/.json/.properties under config/ and explains that start_line/end_line drive 15KB line-range pagination, but instance_path is never explained and the default start_line=1 / null end_line semantics are left implicit.

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?

States a specific verb (read) and resource (.toml/.json/.properties config inside config/), with a scope constraint that distinguishes it from edit_mod_config and list_mod_configs. It doesn't explicitly name a sibling, but the read-only framing makes the purpose unambiguous.

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

Usage Guidelines3/5

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

The config/ directory restriction and the read-only verb imply the context (inspect a config's contents), but there is no explicit when-to-use or when-not guidance and no alternative named. An agent must infer that edit_mod_config is the mutation counterpart.

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