Skip to main content
Glama

Engine Heart

web.web_fill

在网页上填表单并提交:支持输入(fill/type)、点击(click)、选下拉(select)、勾选(check/uncheck)、回车(press)、等待(wait/wait_for)、跳转(goto)、滚动(scroll)、悬停(hover)。steps 是动作数组,按顺序执行,每步形如 {"action":"fill","selector":"#user","value":"abc"}。只做机械执行——不想提交就别给最后那个 click,工具不替调用方判断该不该提交。注意:填表固定走 Chromium(Lightpanda DOM 不完整,定位不到表单元素),常驻 CDP 加速,实测 4 步 5.2s。某步失败会停下并返回已完成步数和当时的页面截图;只要动过页面就不会重跑,避免重复提交。禁止访问内网地址。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>",
      "steps": "<steps>"
    },
    "name": "web.web_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes要打开的网页
stepsYes动作数组,例 [{"action":"fill","selector":"#user","value":"abc"}, {"action":"click","selector":"button[type=submit]"}]
widthNo视口宽,400~2400,默认 1280
heightNo视口高,300~2400,默认 900
screenshotNo操作完是否截图,默认 True

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so richly: it pins rendering to Chromium (Lightpanda DOM incomplete, form elements unfindable), mentions a persistent CDP session with an observed 4-step/5.2s latency, and — most valuably — discloses failure semantics (stops on first failing step, returns completed step count plus a page screenshot) and the no-rerun guard ("只要动过页面就不会重跑,避免重复提交"). That is exactly the behavioral context an agent cannot get from structured fields here.

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

Conciseness4/5

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

Front-loaded with purpose, then actions, then step shape, then caveats — a sensible information hierarchy with no filler sentences. It is dense to the point of being a run-on, with security and latency notes trailing after the main guidance, which costs it a point on structure but not on economy.

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 mutating, side-effecting browser tool with no annotations and no output schema, the definition covers the failure contract and idempotency behavior, which are the critical unknowns. The remaining gap is the success return value: it never says what a successful run yields (final URL, per-step results, screenshot path), so the agent must discover that empirically.

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 coverage is nominally 100%, but the `steps` array items are declared as an empty schema, so the description is the only source of the action vocabulary and the per-step object shape ({"action":"fill","selector":"#user","value":"abc"}), which is genuine added meaning. It says nothing extra about `url`, `width`, `height`, or `screenshot` beyond what the schema already documents.

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?

Opens with a specific verb phrase in Chinese ("在网页上填表单并提交") and then enumerates the supported action vocabulary (fill/type, click, select, check/uncheck, press, wait, goto, scroll, hover), which makes the boundary against web.screenshot_url and web.web_read self-evident without opening any schema.

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?

Gives explicit when-not guidance for the riskiest decision: "只做机械执行——不想提交就别给最后那个 click,工具不替调用方判断该不该提交", transferring the submit decision to the caller. It also states a hard access constraint (禁止访问内网地址). It stops short of naming an alternative tool for read-only page inspection, so it is clear but not fully routing.

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