Skip to main content
Glama

Preview a catalogue

preview_catalogue

Show the user an interactive catalogue preview with page navigation and refresh in hosts supporting MCP Apps. Renders one page from the latest stored content using the PDF layout engine; defaults to page 1. Returns the current page without a total page count. Use page='last' only when the user wants the end; it paginates the full catalogue and may take longer. Other hosts receive the page image and an editor link. Use screenshot_pages for batch visual inspection. Requires render permission. Rendering may fetch catalogue assets and writes render diagnostics; it does not export or publish the catalogue.

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": {
      "documentId": "<documentId>",
      "llm_model": "<llm_model>"
    },
    "name": "preview_catalogue"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page number, or 'last' to find and render the final page with a full pagination pass.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
documentIdYesThe catalogue's id, from list_documents.
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, openWorldHint=true and destructiveHint=false; the description adds substantive context beyond that — that rendering may fetch catalogue assets, writes render diagnostics, does not export or publish, omits a total page count from the response, and that page='last' triggers a full pagination pass that may be slow. These are exactly the side-effect and cost details an agent needs before calling an open-world, non-read-only tool.

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 core action and host scoping, then the page semantics, then the alternative tool and permissions. Dense but every clause carries information; only the sequencing of the permission note at the end is slightly awkward.

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?

For a four-parameter tool with no output schema, the description covers side effects, permission prerequisites, host-dependent return shapes, and the absence of a total page count. Nothing material to calling it correctly is missing.

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 the schema already defines page's integer-or-'last' form, llm_model's fallback to 'unknown', and conversation_id propagation, so the schema does the heavy lifting. The description only adds the latency warning for page='last' and the page-1 default, which is marginal extra meaning beyond the schema text.

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?

States a specific verb and resource (interactive catalogue page preview rendered by the PDF layout engine) and scopes it to hosts supporting MCP Apps, with an explicit note that other hosts get a page image plus editor link. It also names the sibling it is not (screenshot_pages for batch inspection), so an agent can discriminate without opening either schema.

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?

Gives concrete when-to-use rules: use page='last' only when the user wants the end, use screenshot_pages for batch visual inspection, and requires render permission. Both the alternative and the selection condition are stated outright rather than inferred.

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.

Resources