Skip to main content
Glama

cdp_discover

Capture CDP neighbor frames on a selected Windows network interface via a raw-socket listener, returning observed neighbors or an empty result if none are seen before timeout.

Instructions

Listen with a raw-socket CDP listener on a network interface (Get-NetAdapter InterfaceIndex) for Windows CDP neighbor frames up to timeoutMs; an empty result honestly means no neighbors were observed, and a listener that cannot run fails with REMOTE_ERROR.

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": {
      "interfaceIndex": "<interfaceIndex>"
    },
    "name": "cdp_discover"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutMsNo
interfaceIndexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses that this is a raw-socket listener, that an empty result legitimately means no neighbors were observed (preventing false-negative panic), and that a non-startable listener surfaces as REMOTE_ERROR. It stops short of stating privilege/Npcap requirements or what a returned neighbor frame contains.

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?

A single front-loaded sentence opens with the verb and resource, then appends the two clauses that actually matter (empty-result semantics, failure mode). It is dense and semicolon-chained, but no clause is filler.

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?

For a 2-parameter, no-output-schema tool this covers invocation and result interpretation reasonably, but omits the shape of a returned CDP neighbor record and the elevated privileges a raw-socket capture typically needs. An agent can call it, but may be surprised by permission failures or the payload format.

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 0%, yet the description explains both parameters meaningfully: interfaceIndex is identified as a Get-NetAdapter InterfaceIndex, and timeoutMs is framed as the listening window. Defaults and the 1000-50000 bounds are left to the schema, which is acceptable.

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 uses a specific verb ('Listen') and resource ('CDP neighbor frames') scoped to a named interface, so the agent knows this is passive CDP neighbor discovery rather than an active probe. It does not explicitly differentiate itself from plausible siblings like arp_table or net_ping, which keeps it from a 5.

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?

There is no statement of when to reach for this tool versus alternatives such as arp_table or net_ping, and no prerequisites (Windows host, raw-socket capture rights) are called out. Usage is only inferable from the operation description itself.

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