Skip to main content
Glama

Read a website file

read_website_file
Read-onlyIdempotent

Returns one saved file from a website with its path, encoding and content: pages, stylesheets and scripts as utf8 text, and fonts as base64. A picture (such as a photo the person added) comes back as encoding picture with its contentType, bytes, width and height and no content; a smaller copy is attached as an image for you to look at, so you can see what it shows. It changes nothing. A path that is not saved fails with no_such_file; list_website_files shows which paths exist.

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": {
      "websiteId": "<websiteId>",
      "path": "<path>"
    },
    "name": "read_website_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe file's path from the website's root, exactly as it was saved, such as index.html, about.html or images/shop.jpg. list_website_files shows every path.
editKeyNoThe editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account.
websiteIdYesThe websiteId start_website returned, or one list_sites shows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / editKey / description
      Previous value: -"The editKey start_website returned. Not needed for a website in the connected account."New value: +"The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account."
    • addedInput schema / properties / path / description
      Added value: +"The file's path from the website's root, exactly as it was saved, such as index.html, about.html or images/shop.jpg. list_website_files shows every path."
    • addedInput schema / properties / path / maxLength
      Added value: +200
    • addedInput schema / properties / path / minLength
      Added value: +1
  2. Changed3 schema fields changed
    • addedInput schema / properties / editKey / description
      Added value: +"The editKey start_website returned. Not needed for a website in the connected account."
    • addedInput schema / properties / websiteId / description
      Added value: +"The websiteId start_website returned, or one list_sites shows."
    • changedInput schema / required
      Previous value: -[
      -  "websiteId",
      -  "editKey",
      -  "path"
      -]New value: +[
      +  "websiteId",
      +  "path"
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and non-destructive, but the description goes well beyond them: it specifies per-type return shapes (utf8 text for pages/stylesheets/scripts, base64 for fonts), the unusual picture case (encoding 'picture' with contentType, bytes, width and height but no content, plus a downscaled image attachment), and the exact error token for a missing path.

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?

Content is front-loaded with the return value, then the special picture case, then the error path — a sensible order. The sentence 'It changes nothing.' is redundant with readOnlyHint/destructiveHint annotations and could be dropped without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description bears full responsibility for explaining return values, and it does so thoroughly across all file categories including the atypical picture response. Combined with the documented failure mode, an agent has everything needed to call it and interpret the result.

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 including editKey and websiteId are already documented in the schema. The description adds only marginal meaning — that path must match how the file was saved and that missing paths fail — so the baseline of 3 applies.

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 opens with a specific verb and resource ('Returns one saved file from a website') and immediately enumerates what comes back (path, encoding, content). It distinguishes itself from the listing sibling by noting that list_website_files 'shows which paths exist' while this tool returns the file itself.

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?

Usage is clearly implied — fetch a single saved file by path — and the description routes the agent to list_website_files for path discovery and explains the no_such_file failure. It does not state explicit when-not conditions or contrast with edit/delete/save siblings, so it falls short of a 5.

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.