Skip to main content
Glama

添加/修改 DNS 解析记录

add_dns_record
Destructive

Adds or updates a DNS record in DNSPod by browser automation: creates new records or edits existing same host/type, validates via table, and prompts for manual help when login or captcha interrupts.

Instructions

高层封装:在 DNSPod 控制台为指定域名添加或修改一条解析记录。流程为:打开该域名的解析记录页 → 检查是否已存在同主机记录+同类型的记录 → 存在则点"修改",否则点"添加记录" → 按标签填写主机记录/记录类型/记录值/TTL → 保存 → 回读表格校验。mode=auto 时自动判断新增还是修改;mode=create 强制新增;mode=update 要求记录必须已存在。若中途遇到登录过期/滑动验证,会停下来返回截图并提示人工介入(不会盲目继续点)。执行过程会返回完整步骤轨迹;失败时附带失败现场截图,可用 interact_element 手工收尾。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ttlNo可选:TTL 秒数,建议取 600/1800/3600/7200/86400,默认 600。
lineNo可选:解析线路,默认「默认」。
modeNoauto=存在则改、不存在则加(默认);create=只新增;update=只修改。auto
valueYes记录值,例如 1.2.3.4 或 target.example.com。
domainYes主域名,例如 example.com(需已在当前账号的 DNSPod 中)。
cdpPortNo可选:CDP 调试端口。省略时沿用当前已连接的端口(从未连接过则为 9222)。
subDomainYes主机记录,例如 @、www、*、_acme-challenge。
recordTypeYes记录类型,例如 A、CNAME、TXT。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the full behavioral profile: duplicate check on host/type, add-vs-modify decision, save and read-back verification, and the pause-with-screenshot behavior on login expiry or slider challenges. It also states it will not blindly continue clicking and returns step trajectories plus failure screenshots.

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?

The description is dense but well organized: purpose, flow, mode behavior, and failure handling all appear in a logical order. It is longer than minimal, but the tool is complex enough to justify each operational sentence.

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?

It covers the workflow, mode constraints, expected outputs (step trajectory and screenshots), and recovery path. No output schema exists, so the description's output disclosure is valuable and sufficient for an agent to invoke and verify the tool.

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 description coverage is 100%, so the baseline is 3; the description adds meaning by explaining the duplicate-detection rule for subDomain/recordType and the mode decision. It does not add new details for ttl/line/cdpPort, but those are already well documented in the schema.

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 states a specific high-level operation: add or modify a DNS record for a specified domain in the DNSPod console, and details the exact workflow. This clearly distinguishes it from generic browser/sibling tools like take_screenshot or configure_security_group.

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?

It provides clear context for mode selection (auto/create/update) and names interact_element as a manual fallback for auth/slider failures. It does not explicitly enumerate sibling tools as alternatives, but the intended use is unambiguous.

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