Skip to main content
Glama

browser_data_compare

Compare data from browser sources (DOM, API, storage) to detect missing data, format errors, and content differences. Supports matching against expected data or baselines.

Instructions

数据一致性比对:提取页面表格、卡片、列表数据,与期望数据或基准数据进行比对,识别数据缺失、格式错误、内容差异。支持多种数据源:DOM表格、JSON响应、localStorage、API返回数据。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiBodyNoPOST请求的body数据
sessionNo浏览器会话ID
selectorNo目标数据区域的CSS选择器,如表格、卡片列表容器
apiMethodNoAPI请求方法GET
keyFieldsNo主键字段列表,用于数据匹配比对
storageKeyNolocalStorage/sessionStorage中的数据键名
strictModeNo严格模式:字段类型和顺序必须完全一致
apiEndpointNoAPI端点URL,用于获取比对数据
compareModeNo比对模式:dom_vs_api=页面数据与API响应比对,dom_vs_storage=页面数据与本地存储比对,dom_vs_expected=页面数据与期望数据比对,baseline_compare=与已保存的基线比对dom_vs_api
extractModeNo数据提取模式:table=表格,cards=卡片列表,list=普通列表,custom=自定义选择器table
baselineNameNo基线名称,用于baseline_compare模式
expectedDataNo期望数据,用于与页面数据比对
ignoreFieldsNo忽略比对的字段列表
Behavior2/5

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

No annotations are provided, so the description must carry the full burden for behavioral disclosure. It does not mention whether the tool is read-only, destructive, or requires authentication. The absence of such details leaves important behavioral traits unclear.

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

Conciseness3/5

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

The description is a single dense paragraph in Chinese. While it covers the essential points, it could be more concise and structured (e.g., bullet points) to improve readability for an AI agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 13 parameters with enums and nested objects, but no output schema. The description explains the comparison modes and data sources but lacks details on the output format, errors, or behavior for edge cases, making it partially incomplete.

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 even without additional param details in the description, a baseline of 3 is appropriate. The description adds overall context but does not enhance individual parameter semantics beyond what the schema already provides.

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 that the tool performs data consistency comparison between page data (tables, cards, lists) and expected or baseline data, identifying gaps. It lists multiple data sources and comparison modes, distinguishing it from sibling browser tools like visual or network analysis.

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 enumerates compare modes (dom_vs_api, etc.) and extraction modes, implying usage contexts. However, it does not explicitly state when to prefer this tool over alternatives (e.g., visual comparison or API probes) or when not to use it.

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/validpilot/ai-verify-mcp'

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