Skip to main content
Glama
vuluu2k

WebCake Storefront MCP

by vuluu2k

search_page_elements

Search page elements by type, text, class, or event. Retrieve matching elements with complete attributes, styles, and bindings for analysis.

Instructions

Search/filter elements within a page source. Returns matching elements with full detail (id, type, style, text, classes, etc.). Examples:

  • Find all buttons: type="button"

  • Find elements with custom class: custom_class="hero"

  • Find text containing "subscribe": text="subscribe"

  • Find all data-bound elements: has_bind=true

  • Find all elements with events: has_events=true

  • Find all elements with custom CSS classes: has_custom_class=true

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoFilter by element ID substring (e.g. 'TEXT', 'BUTTON-3')
textNoFilter by text content substring
typeNoFilter by element type (e.g. 'text', 'button', 'image', 'container', 'section', 'form', 'input')
limitNoMax results (default 50)
page_idYesPage ID
has_bindNoOnly elements with data bindings (product, category, blog)
has_eventsNoOnly elements with events (click, submit, mouseenter, etc.)
custom_classNoFilter by custom class substring
has_custom_classNoOnly elements that have a custom class
Behavior3/5

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

With no annotations, the description carries the burden of disclosing behavior. It mentions returning 'full detail' and gives filter examples, but does not explain edge cases like substring matching behavior, default limit enforcement, or what happens when no elements match. The schema covers defaults, but the description adds moderate context.

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?

The description is concise: one opening sentence plus six short example lines. Every line adds practical value, and the formatting makes filter options easy to scan. No redundant content.

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 search/filter tool with 9 parameters and no output schema, the description covers the key usage patterns and return intent. It lacks explicit mention of pagination/limit behavior or relationship to page source lifecycle, but the examples and clear scope are sufficient for typical use.

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?

Although schema coverage is 100%, the description adds valuable usage semantics by showing concrete example values for multiple parameters (`type="button"`, `text="subscribe"`, `has_bind=true`, etc.). This goes beyond the schema's raw field descriptions and helps the agent form valid queries.

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 clearly states 'Search/filter elements within a page source' with a specific verb and resource, and lists concrete example filters. It distinguishes from sibling `search_global_source_elements` by explicitly scoping to 'page source', making the purpose unambiguous.

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?

The description provides useful examples of filters, which implies usage patterns, but does not explicitly state when to use this tool versus alternatives like `list_elements` or `search_global_source_elements`. No exclusions or alternative comparisons are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vuluu2k/webcake-storefront-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server