Skip to main content
Glama

Read file

read_file
Read-onlyIdempotent

Reads one file from a Pagehaus site, using the Pagehaus files API (https://pagehaus.app/help/api). path is a file inside the site, such as "/index.html". Text files (HTML, CSS, JS...) come back as text, other files as base64.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile path from the site's top, e.g. "/index.html".
siteYesThe site name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds genuine value beyond that by disclosing the return encoding rule (text for HTML/CSS/JS, base64 for other file types), which is not captured anywhere in the structured fields.

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 tight sentences, front-loaded with what the tool does, followed by the API reference and the return-format rule. No filler sentences and every clause carries information.

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 steps up by explaining the text-versus-base64 return shape, which is the key thing an agent needs to interpret results. It falls short of complete only in not covering failure modes (missing site/path) or the API reference details, but annotations carry the safety profile.

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 both parameters are already documented, and the description's example path '/index.html' largely repeats the schema's own example. Baseline 3 is appropriate since the description adds no new constraint, format, or validation detail beyond the schema.

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 specific verb and resource ('Reads one file from a Pagehaus site') and scopes it to a single file, which cleanly separates it from list_files and write_file. The mention of the underlying files API adds a concrete anchor for what operation is being performed.

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?

Usage is only implied: read one known file, as opposed to list_files for discovery or write_file for mutation. There is no explicit 'use this when...' statement or named alternative, and no guidance on what happens if the path does not exist.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources