Skip to main content
Glama

How to build a catalogue

get_catalogue_guide
Read-only

The full account of how catalogues work here — the same material the in-app assistant works from. Read the relevant topic BEFORE writing template.hbs, styles.css or a component: it covers the component model and locks, the Paged.js page-geometry traps that produce blank pages and white bands, the tagging contract the editor's Layers panel is built from, and how to resolve pictures stored inside spreadsheet cells. Ask for one topic rather than 'all' unless you are starting from nothing — 'all' is long.

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": {
      "topic": "<topic>",
      "llm_model": "<llm_model>"
    },
    "name": "get_catalogue_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYesoverview: The four root files, the component registry, how a spreadsheet becomes a rendered page, and the revision every write carries. | components: The two component types, which may call which, where CSS and helpers belong, and what a lock protects. | properties: The @prop annotations the editor's Properties panel is built from — theme and component custom properties a person can change without code. Visual style only, never layout. | pagedjs: Page setup, named pages, running headers, margin boxes — and the mistakes that produce blank pages and white bands. Read this before writing styles.css. | tagging: The data-content-tag / data-product-tag contract the editor's Layers panel is built from. A catalogue written without them arrives with an empty Layers tree. | cell-images: What a [cattalog-media-ref:…] token in a cell means, and how to resolve it to a real image URL in the transform. | rules: How to read data without burning context, what update_file does to what you send, and the transform and helper signatures. | all: every topic, in order.
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.
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/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond that: it is a knowledge lookup, its content mirrors the in-app assistant, and requesting 'all' is expensive. It does not say anything about the response payload or how large a single topic is, so with the return shape unstated this sits at a solid 3 rather than higher.

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?

Three sentences, each doing work: identity, when to read which topic, and topic-selection advice. The opening 'The full account of how catalogues work here' is slightly atmospheric but establishes authority. Little wasted verbiage.

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?

For a read-only documentation retrieval tool with a fully enumerated topic parameter and no output schema, the description covers what the tool is, when to consult it and how to pick a topic. The only material gap is what a response actually looks like (prose vs. markdown, size per topic), which matters given the explicit warning that 'all' is long.

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% and the enum descriptions are already detailed, so the baseline is 3. The description earns above baseline by adding the one operational rule the schema lacks: choose a single topic over 'all' for cost reasons, which the schema's 'every topic, in order' does not convey. It does add refresh/expense context but leaves llm_model and conversation_id entirely to the schema, where they are in any case fully documented.

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 the resource precisely — the full documentation of how catalogues work, the same material the in-app assistant draws from — and implies the retrieval verb ('ask for one topic'). It also scopes the subject matter (component model, Paged.js geometry, tagging contract, cell images), which an agent can use to tell this apart from read_component or get_document. It stops short of naming a sibling to contrast against, so not a 5.

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?

It gives an explicit precondition — read the relevant topic BEFORE writing template.hbs, styles.css or a component — and an explicit parameter-selection rule: prefer one topic over 'all' unless starting from nothing, because 'all' is long. That is both when-to-use and when-not in two clauses.

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