Skip to main content
Glama

Get site

get_site
Read-onlyIdempotent

Get a single site's status, visibility, current version metadata, detected content kind, its old addresses that still forward to it (old_addresses), SPA fallback, allowed external origins, whether its page offers the uploaded file for download (original_included) and whether that can be changed (original_withholdable), link expiry (link_expires_at, ISO or null) with its derived link_status, whether a view password is set (has_view_password), view count, the allowlist it is currently shared with (who can view a private site) by id (view_count, allowlist, old_addresses, spa_fallback, viewer_update, auto_refresh, external_origins and original_withholdable are null for a reader who may only view it), and files: every stored file of the live version as {path, byte_size}, partials included. content_hash names the live version: pass it as base_content_hash to update_site. website_host is the address of a website. Pass a path from files to get_site_content to read that file.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe id of the site to fetch
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
    • 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)."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds real behavioral context beyond that: which fields are null for a read-only viewer and that `content_hash` names the live version. It does not cover permissions needed or error conditions, so it is additive but not rich.

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

Conciseness2/5

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

The bulk is a single run-on sentence with a long parenthetical list of field names and a nested null-condition clause; field semantics and the usage routing are buried mid-sentence. Front-loading the routing hints (update_site, get_site_content) would make it far more scannable.

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?

There is no output schema, so the description carries the burden of describing return values and it does so thoroughly, including the null-for-viewer caveat. Given two parameters and a read-only, idempotent annotation set, it is complete enough to call correctly, though readability suffers.

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 coverage is 100% and both parameters are documented in the schema, including the personal-space-versus-workspace fallback, so the description need not repeat it. It adds no further meaning to `site_id` or `workspace_id`, which is acceptable at full coverage but earns only baseline credit.

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?

The description states a specific verb and resource ('Get a single site') and then enumerates the returned fields, distinguishing it from siblings like get_site_content and update_site. It is clear what the tool fetches, though the enumeration makes the purpose statement dense rather than crisp.

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?

It gives explicit downstream routing: pass `content_hash` as `base_content_hash` to update_site, and pass a path from `files` to get_site_content to read a file. It does not say when not to use it (e.g., listing sites or fetching only a file), but the read-versus-read-content split is clear.

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.