Skip to main content
Glama

Read a BrewPage publication

read_publication
Read-only

Read a BrewPage publication's content, owner source, settings, statistics, server code, or secret status to inspect published sites, files, JSON, KV entries, and protected content.

Instructions

Read content, owner source, owner settings, statistics or server code for a publication. Site content returns its manifest or named path. File content returns a download reference. KV without key lists keys. Continue long content with the returned offset. A secret ({"kind":"secret","id":} or its manage link) returns its state, views and open times, never its content.

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

Input Schema

NameRequiredDescriptionDefault
idNoPublication id, or a secret's 10-character ref
tzNoStats only. IANA time zone, default UTC
keyNoKV key. Excludes hosting.
kindNoPublication kind returned by publish or list; secret with its ref as id
pathNoRelative site file path. Omit for the owner manifest
viewNoDefault content. HTML source, settings, stats and lambda are owner reads; lambda: server code of a page or site with switches, counters, usage and the newest runs with logs
rangeNoStats only. Days, default 30
offsetNoNext character offset from a previous read; view lambda: the returned nextOffset of older runs
passwordNoReader password when content is protected
manageUrlNoPrivate link as target and proof.
namespaceNo
ownerTokenNoPrivate owner proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv3.5.1
    • changedInput schema / properties / offset / description
      Previous value: -"Next character offset from a previous read"New value: +"Next character offset from a previous read; view lambda: the returned nextOffset of older runs"
    • changedInput schema / properties / view / description
      Previous value: -"Default content. HTML source, settings and stats are owner reads"New value: +"Default content. HTML source, settings, stats and lambda are owner reads; lambda: server code of a page or site with switches, counters, usage and the newest runs with logs"
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "content",
      -  "source",
      -  "settings",
      -  "stats"
      -]New value: +[
      +  "content",
      +  "source",
      +  "settings",
      +  "stats",
      +  "lambda"
      +]
  2. Changed3 schema fields changedv3.3.1
    • addedInput schema / properties / id / description
      Added value: +"Publication id, or a secret's 10-character ref"
    • changedInput schema / properties / kind / description
      Previous value: -"Publication kind returned by publish or list"New value: +"Publication kind returned by publish or list; secret with its ref as id"
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "html",
      -  "site",
      -  "file",
      -  "json",
      -  "kv"
      -]New value: +[
      +  "html",
      +  "site",
      +  "file",
      +  "json",
      +  "kv",
      +  "secret"
      +]
  3. Addedv3.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the description's added value is the secret semantics: a secret ref or manage link returns 'its state, views and open times, never its content'. That is a real, non-obvious behavioral trait, and the owner-view barriers (password, ownerToken, manageUrl) are hinted at, though not fully explained.

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?

Front-loaded with the verb and target set, then kind-specific return behavior, then continuation, then the secret caveat. Sentences are dense and mostly waste-free, though the telegraphic style ('Site content returns', 'KV without key') sacrifices a little readability.

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?

Covers the multi-modal return behavior, offset continuation, and the secret-content exclusion, which are the highest-risk unknowns for a 12-parameter read tool with no output schema. Left unstated are the auth interplay between password/ownerToken/manageUrl and namespace behavior, but the schema carries defaults (tz, range, view).

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 high (92%), so the baseline is 3; the description still adds meaning by documenting the secret id/manage-link dual addressing, the meaning of 'continue with offset', and the fact that KV without a key lists keys. It doesn't clarify the distinction between password, manageUrl and ownerToken proofs beyond naming them.

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?

States a specific verb (read) and enumerates the five view targets (content, source, settings, stats, lambda) plus the kind-dependent return shape. An agent can tell what the tool retrieves, though it never contrasts itself with siblings such as read_page_data or publication_settings.

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?

Provides useful conditional guidance: 'Site content returns its manifest or named path', 'KV without key lists keys', and 'Continue long content with the returned offset'. However, it gives no explicit when-to-use versus the sibling read/settings tools and no when-not-to-use condition.

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