Skip to main content
Glama

read_local_file

Read-only

Load file contents from allowed local paths to ingest research outputs, claim JSON, or markdown before publishing to the Geo knowledge graph.

Instructions

Read a local file from an allowed path. Useful for ingesting local research outputs, claim JSON, or markdown before publishing to Geo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outputNoReturn mode for file content; use base64 for binary files
filePathYesAbsolute or relative file path to read
maxBytesNoMaximum bytes to read (default 250000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.8.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, covering the safety profile. The description adds useful behavioral context with 'from an allowed path', signaling that path restrictions exist. However, it does not disclose what happens when a path is not allowed, truncation behavior with maxBytes, or error handling, leaving some behavioral gaps.

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?

Two sentences with no filler. The core action and security constraint are front-loaded in the first sentence, and the usage context earns its place in the second. Nothing extraneous.

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 simple read-only file tool, the description, annotations, and 100%-coverage schema together provide adequate guidance. The main gap is the absence of any detail about the return format or failure behavior since there is no output schema, but this is a minor shortfall for a low-complexity tool.

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 100%, so all three parameters (filePath, output, maxBytes) already carry descriptions in the schema. The tool description adds no parameter-level detail beyond the schema, placing it at the baseline of 3.

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 states a specific verb ('read'), a resource ('local file'), and a scope constraint ('from an allowed path'). It clearly differentiates from siblings like create_knowledge_graph_from_file or publish_edit, which involve writing or transformation rather than plain file reading.

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?

The second sentence gives a clear use context: 'ingesting local research outputs, claim JSON, or markdown before publishing to Geo.' It does not explicitly name alternatives or exclusions, but the context is specific enough for an agent to know when this tool is the right choice.

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