Skip to main content
Glama

btb_read_file

Read files from the back-to-the-basics repository by supplying a path relative to the BTB root, so agents can inspect source or test files.

Instructions

Reads a file from the back-to-the-basics repository.

Args: file_path: Relative path from BTB root (e.g., "coherence.py", "tests/test_memory.py")

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": {
      "file_path": "<file_path>"
    },
    "name": "btb_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a safe read but never states that it is read-only, what happens on a missing path, whether absolute paths or '..' traversal are rejected, or whether binary/large files are handled — all things an agent needs before calling.

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?

The purpose is front-loaded in one sentence, and the Args block is short and example-driven. The docstring-style formatting is slightly verbose for a one-parameter tool but every line adds information.

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. However, for a read tool with zero annotation coverage, the definition leaves out error behavior and path-handling rules, making it only minimally complete.

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 0%, and the description compensates by explaining that file_path is relative to the BTB root, plus concrete examples such as 'coherence.py' and 'tests/test_memory.py'. This is meaningfully more than the bare string type in the schema, though it does not say how absolute paths are treated.

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+resource: reads a file from the back-to-the-basics repository, which clearly distinguishes it from btb_execute_command and btb_list_directory. It does not explicitly name how it relates to siblings, so it stops short of a 5.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given; the agent must infer that this is the retrieval counterpart to btb_list_directory or btb_execute_command. It conveys no prerequisites, no error conditions, and no exclusions.

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