Skip to main content
Glama

ensp_apply_experiment

Deploy experiment configurations across multiple devices in sequence, verify targets, and generate a structured report. Automates command sending and saving for eNSP lab setups.

Instructions

一站式下发实验配置:按设备规划的命令序列逐台下发 + 校验 + 报告。

参数:

  • plan{ "设备名": ["system-view", "interface GE0/0/0", "ip address ...", ...], ... }

  • verify_targets:可选校验项,元素为 {"device": str, "kind": "ospf"|"vlan"|"routes"|"interfaces"|"ping", "args": {...}}

  • auto_save:下发完成后自动 save

工作流:

  1. 对 plan 中每台设备调用 ensp_send_commands(自动进 system-view 后再下发)

  2. 跑 verify_targets

  3. auto_save=True 时全部 save

  4. 返回结构化报告 + Markdown

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planYes
auto_saveNo
verify_targetsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden and does well: it reveals that system-view is entered automatically before sending, that auto_save triggers a save pass, that it delegates to ensp_send_commands, and that it returns a structured report plus Markdown. It stops short of describing failure/partial-failure behavior, permission needs, or reversibility of the applied config, which matters for a mutating tool.

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?

Front-loaded purpose followed by clearly labeled parameter and workflow sections. Every line adds information the agent needs (parameter shapes, step ordering, return format) with no filler.

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?

For a 3-parameter orchestrator with nested objects and an output schema, the description supplies the parameter shapes, the execution sequence, sibling delegation, and side effects (system-view, save). Since an output schema exists, omitting return-value detail is appropriate; nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and it does: plan is shown with concrete shape and example commands, verify_targets is documented with its element structure and the kind enum values (ospf|vlan|routes|interfaces|ping), and auto_save is explained as save-after-deploy. All three parameters gain meaning absent from 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 opens with a specific verb+resource+scope: a one-stop pipeline that sends per-device command sequences, verifies, and reports. It clearly distinguishes itself from siblings like ensp_send_commands and ensp_save_config by positioning itself as the orchestrator that calls them. An agent can tell what this does and where it sits in the tool family.

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 numbered workflow makes the intended usage context concrete: this is the tool to reach for when you want the whole deploy+verify+save flow rather than individual steps. It names the delegation to ensp_send_commands, guiding the agent away from manually looping that tool. However, it never explicitly states when to prefer this over a sibling like ensp_smart_config, nor any when-not-to-use condition.

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