Skip to main content
Glama

Search page sections

search_sections
Read-onlyIdempotent

Use this when the user wants examples of one part of a page: "dark pricing sections", "hero with a product screenshot", "testimonials". Returns homepage sections by kind, layout and visual tags, each with its own values (heading/body type, colors, buttons) and a screenshot. Each color is checked against the screenshot; a color it did not confirm is left out and named in values.unconfirmed, so take that part from the image. Not for whole sites (use search_designs).

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

Input Schema

NameRequiredDescriptionDefault
kindNoSection kind.
siteNoOnly sections of this indexed site (slug, URL or brand name).
limitNoMax results (default 8).
queryNoFree text over description, tags, heading, fonts and site, e.g. "serif headline", "gradient".
schemeNoThe section's own background.
contextNoA few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details.
previewsNoAttach a small screenshot of each of the first 8 results for you to look at. false = text only.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description is free to spend its words on genuinely new behavior. It discloses what each result contains (per-section values: heading/body type, colors, buttons) plus a screenshot, and — most valuable — a verification rule: colors are checked against the screenshot, unconfirmed ones are omitted and named in `values.unconfirmed`, so the agent must read those from the image. That is non-obvious runtime behavior an agent could not infer from any structured field.

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

Conciseness5/5

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

Four sentences, front-loaded with the usage condition and example phrasings before any return-value detail. Every sentence carries distinct information: trigger, output shape, color-verification caveat, and the sibling exclusion placed last as a boundary marker. No restatement of the name or title.

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?

With nine optional params, no output schema, and no annotations gaps, the description does the heavy lifting on return values (sections plus values plus screenshot) and on the one gotcha the agent must handle (`values.unconfirmed`). Minor gaps remain: nothing is said about result ordering/relevance or what an empty result looks like. The analytics parameters are left entirely to the schema, which is acceptable since their descriptions are 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 a 3 is the floor and the enum values for `kind` and `scheme` are already self-documenting. The description does add real mapping value by tying natural-language phrases to parameter combinations ("dark pricing sections" implies scheme+kind, "testimonials" implies kind alone) and by summarizing that results are searchable by kind, layout and visual tags. It does not touch the analytics params (`context`, `llm_model`, `conversation_id`) or `limit`/`previews`, but the schema already explains those.

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?

The description states a specific verb and resource ("returns homepage sections") and immediately narrows scope with example queries ("dark pricing sections", "hero with a product screenshot") that show exactly what kind of request this matches. It also explicitly names the sibling it is not: "Not for whole sites (use search_designs)". An agent can distinguish it from every listed sibling without opening a 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?

It gives an explicit activation condition ("when the user wants examples of one part of a page"), three concrete phrase triggers, and an explicit exclusion with the correct alternative ("Not for whole sites (use search_designs)"). Nothing about when to choose this over a sibling is left to inference.

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