Skip to main content
Glama

List sites

list_sites
Read-onlyIdempotent

List the non-deleted sites in one workspace (the one named by workspace_id, the personal space when omitted; sites live in exactly one workspace) with their ids, slugs, titles, statuses, visibilities (public or allowlist, i.e. private), share URLs, detected content kind (content_kind), SPA fallback (spa_fallback), what open viewers do about a new version (viewer_update, auto_refresh), allowed external origins (external_origins), link expiry (link_expires_at, ISO or null) with its derived link_status (no_expiry, active, expiring_soon, or expired), and whether a view password is set (has_view_password). Narrow the results with the optional visibility, status, link_status, and expires_within_days filters; all combine with AND.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_sites"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoOnly sites in this lifecycle state (`published` is live)
visibilityNoOnly sites with this visibility (`allowlist` is private/restricted)
link_statusNoOnly sites whose share link is in this expiry state
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).
expires_within_daysNoOnly sites whose link expires within this many days and has not lapsed

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.6/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 openWorldHint=false, so the safety profile is fully covered by structured data. The description adds genuinely useful behavior beyond that: non-deleted scoping, one-workspace-per-site semantics, and derived field semantics (`link_status` derived from `link_expires_at`, visibility `allowlist` meaning private). It says nothing about result limits, ordering, or pagination, so it is additive but not complete.

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?

The purpose and scoping are correctly front-loaded, but the body is one very long sentence that chains a dozen return fields with parenthetical glosses, making it hard to scan. No sentence is strictly wasted (there is no output schema to carry the field list), yet the enumeration would be far more usable as a structured list rather than a comma-run-on.

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

Completeness3/5

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

With no output schema, describing returned fields is justified and largely done. However, for a list tool the agent still lacks essential call-shape information: whether results are paginated, any maximum number returned, and default ordering. Workspace and filter semantics are otherwise complete.

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 description coverage is 100%, so the baseline is 3; the description earns above baseline by adding cross-parameter meaning the schema cannot express, namely that all filters combine with AND. It also glosses enum values (`allowlist` = private) and explains that `link_status` derives from `link_expires_at` rather than being stored, which helps an agent reason about filter combinations.

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 opens with a specific verb+resource+scope: 'List the non-deleted sites in one workspace (the one named by `workspace_id`, the personal space when omitted)'. It also states the cardinality rule ('sites live in exactly one workspace'). It does not differentiate itself from the sibling `list_websites`, which is the main remaining ambiguity for an agent choosing between the two list tools.

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 clear operational context: deleted sites are excluded, the default is the personal space when `workspace_id` is omitted, and the four optional filters 'all combine with AND'. There are no explicit exclusions or named alternatives, so it stops short of the when-not/use-instead guidance that would earn 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.