Skip to main content
Glama

chain_spec_run

Runs a sequence of browser actions to validate a business flow, collects console errors, network logs, state diffs, and evidence for each step.

Instructions

按链路规格执行简化版业务链路验证:支持打开页面、点击、输入、等待、断言、状态采集/对比,并汇总每步 Console、PageError、Network、状态 diff 和证据。先做进现有 MCP,后续再剥离为独立链路验证引擎。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo链路名称,可作为 runId 兜底
runIdNo本次链路运行 ID,不传则自动生成
stepsYes链路步骤列表,按顺序执行
timeoutNo打开 targetUrl 的超时时间,默认 30000ms
evidenceNo是否每个成功步骤都采集证据,默认 false
failFastNo步骤失败后是否立即停止,默认 true
settleMsNo每步完成后的默认稳定等待时间,默认 300ms
snapshotNo采集证据时是否保存 DOM 摘要,默认 true
templateNo内置链路模板名,如 marketplace-purchase、login-basic、credits-balance。指定后自动加载模板的 steps/stateSources/expectations/targetUrl,再用传入参数覆盖
targetUrlNo可选,执行链路前先打开的页面 URL。指定 template 时可覆盖模板的 targetUrl
screenshotNo采集证据时是否截图,默认 true
expectationsNo整条链路最终状态断言,结构同 state_diff_assert.expectations
stateSourcesNo整条链路执行前后要采集并对比的状态源,结构同 state_diff_assert.sources
finalEvidenceNo链路结束时是否采集最终证据,默认 false
networkFilterNo网络请求过滤条件,如 urlContains/method/statusMin/statusMax
evidenceOnFailNo失败步骤是否采集证据,默认 true
failOnRuntimeErrorNo每步出现 Console/PageError/Network 错误时是否判失败,默认 true
Behavior2/5

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

With no annotations, the description must fully disclose behavioral traits. It lists capabilities and summarization features (console, page errors, network, state diff, evidence) but omits critical details: whether a new browser session is created, side effects on browser state, resource cleanup, or destructive actions. The mention of 'simplified' and 'future extraction' does not clarify runtime behavior.

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 moderately concise, listing capabilities in a single sentence. However, it includes meta comments about implementation ('先做进现有MCP,后续再剥离') that are irrelevant to an agent's use. This adds noise without improving understanding.

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

Completeness2/5

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

Given the tool's complexity (17 parameters, nested objects, no output schema), the description is insufficient. It does not specify the output format (only mentions 'summary' vaguely), nor does it highlight the only required parameter ('steps'). Important behaviors like error handling, timeout defaults, and template usage are left to the schema alone.

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 tool description adds little beyond the schema; it lists high-level actions (e.g., 'open page, click, input') that map to step types already documented in the schema. It does not explain parameter interactions or provide examples for complex nested objects like 'expectations' or 'stateSources'.

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 executes a simplified business chain validation with specific actions (open, click, input, wait, assert, state capture/compare) and summarizes results. It differentiates from sibling tools like 'browser_chain' by emphasizing 'spec' and a structured approach, though it doesn't explicitly distinguish from closely related tools like 'chain_spec' or 'browser_flow'.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as 'browser_chain' or 'browser_step'. It lacks prerequisites, use cases, or exclusions, leaving the agent to infer context from the name and schema alone.

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