Skip to main content
Glama
timotheeiss

Semantic Hints MCP

by timotheeiss

Semantic snapshot

semantic_snapshot

Extract a compact map of UI elements with data-agent-id hints, grouped by roles like regions, actions, and inputs, for quick first observation before full accessibility snapshots.

Instructions

Return a compact map of hinted UI elements (only elements carrying data-agent-id), grouped into regions/actions/inputs/observables/navigation/other. Use this as a cheap first observation instead of a full accessibility snapshot. To act on an element, pick its id and use the Playwright MCP with selector [data-agent-id='']. Returns compact JSON only — never HTML, DOM, or class names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoOptional URL to open before extracting. If omitted, reads the current page.
scopeNoOptional data-agent-id or CSS selector to limit extraction to a subtree.
includeHiddenNoInclude hidden elements (default false).
Behavior4/5

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

With no annotations, the description fully discloses that the tool returns only compact JSON (no HTML/DOM/class names) and groups elements. It implies a read-only, cheap operation, which is sufficient for transparency.

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, front-loaded with the main purpose, and every sentence adds value. No wasted words.

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?

Given no output schema, the description adequately explains the output format (compact JSON with groupings, excludes HTML/DOM/class names) and how to use the returned ids. It is complete for a lightweight observation tool.

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 description coverage is 100%, so baseline is 3. The description does not add meaning beyond what the schema already provides for each parameter (url, scope, includeHidden).

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 clearly states the tool returns a compact map of hinted UI elements grouped into categories, and distinguishes it from a full accessibility snapshot. However, it does not explicitly differentiate from its sibling tool 'semantic_observe', which could be more detailed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description advises using this as a cheap first observation before a full snapshot, and instructs the user to pick an `id` and use Playwright MCP for actions. It provides clear context and next steps but lacks explicit when-not-to-use conditions.

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/timotheeiss/semantic-hints-mcp'

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