Skip to main content
Glama

Get site content

get_site_content
Read-onlyIdempotent

Fetch a stored file of a site by id so you can edit it and push the result back with update_site: the read half of the round-trip get_site and list_sites omit (they return only metadata, never the body). Without path returns the entry document. With path (e.g. _partials/header.html) returns that stored file as text; the site’s file list is in get_site. Read every file you will change before sending it in changes; never guess a path. A binary file or one over 256 KB is refused with a plain sentence. Without path, returns the live document inline as UTF-8 (encoding: "utf-8") for HTML/Markdown/text/SVG/JSON, or base64 (encoding: "base64") for binary content like PDFs and images, alongside content_type, content_kind, and content_hash (the version you read: pass it as base_content_hash to update_site). A site whose content_kind is not html was rendered from a file (Markdown, a notebook, a Word, PowerPoint or Excel file, a CSV, a PDF, an image, a video, an audio, a Mermaid diagram, a text file or a React component): what comes back is its rendered page, not the file, and the result says so in note. To change such a site, send the source again to update_site: a text source (Markdown, CSV, Mermaid, notebook, code, component) as files, a binary one as an upload_id (which needs a shell that makes the SnapHost tool calls itself; without a shell, update_site says where the person drops it); sending edited HTML turns it into an HTML site. Pass original true to fetch the uploaded file itself when the page offers it for download (get_site reports original_included); refused when it does not.

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": {
      "site_id": "<site_id>"
    },
    "name": "get_site_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoA stored file of the live version, copied exactly from the `files` list of get_site (e.g. `_partials/header.html`). Omit for the entry document.
site_idYesThe id of the site whose content to fetch
originalNoFetch the uploaded file the page carries for download (a .pptx, an image, a CSV) instead of the rendered page
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / path
      Added value: +{
      +  "description": "A stored file of the live version, copied exactly from the `files` list of get_site (e.g. `_partials/header.html`). Omit for the entry document.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / original
      Added value: +{
      +  "description": "Fetch the uploaded file the page carries for download (a .pptx, an image, a CSV) instead of the rendered page",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantial behavior beyond them: the 256 KB and binary refusal, encoding returned (utf-8 vs base64), the included keys (content_type, content_kind, content_hash), the rendered-vs-source nuance via content_kind/note, and the original-flag refusal condition. This is rich behavioral context that structured fields do not supply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is largely load-bearing, but it is delivered as one dense run-on paragraph that is hard to scan. The round-trip framing is front-loaded, yet the reader must unwind several embedded clauses (encoding, content_kind, original) mixed together. Better segmentation would improve it without cutting substance.

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?

Although there is no output schema, the description explains return shapes (inline UTF-8 vs base64, content_type, content_kind, content_hash, note) in detail. Combined with usage and behavioral coverage, an agent has everything needed to call this correctly on the first attempt.

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 100%, so the baseline is 3, but the description adds real meaning: path targets a stored file copied from get_site's files list, omission returns the entry document, and original fetches the uploaded file only when the page offers it. It extends beyond the schema text rather than repeating it.

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?

'Fetch a stored file of a site by id' gives a specific verb and resource, and the description immediately distinguishes it from get_site and list_sites by noting those return only metadata, never the body. An agent can tell exactly what this tool retrieves and why the siblings don't.

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

Usage Guidelines5/5

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

Explicit when-to-use is stated ('so you can edit it and push the result back with update_site'), alternatives are named, and it prescribes preconditions ('Read every file you will change...; never guess a path'). It also routes the agent to get_site for the file list and to update_site for writes.

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.