Skip to main content
Glama

network/arp

Read-onlyIdempotent

Display the kernel's IPv4 ARP cache to map IP addresses to MAC addresses for a given interface or all interfaces. Read-only; shows only recently contacted hosts, not IPv6.

Instructions

Shows the kernel's ARP cache (IPv4 address to MAC address) from /proc/net/arp in the daemon's network namespace. Read-only. It is a cache, not a scan: only hosts contacted recently appear, and IPv6 neighbours are not included. interface is an exact device name (eth0); omit it for all. For sockets and connections use network/connections, for reachability network/ping. Always returns JSON: an array of objects (ip_address, hw_type and flags as raw hex such as 0x1, hw_address, mask, device). When nothing matches the output is null, not [].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
interfaceNoExact interface name such as eth0; omit for all interfaces

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.1
    • addedInput schema / properties / interface / description
      Added value: +"Exact interface name such as eth0; omit for all interfaces"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description still adds substantial behavioral context beyond them: the cache's staleness limitation, IPv6 exclusion, the namespace scoping, and the null-vs-[] return quirk.

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 with the core purpose, then scope, limitations, alternatives, and return shape in a tight sequence. Every sentence carries distinct information; none is padding.

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?

With no output schema, the description fully specifies the return contract – always JSON, an array of objects with named fields, and null (not []) when empty. Combined with the cache caveats, nothing an agent needs to call and interpret this tool is missing.

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% and the schema already documents `interface` as the exact interface name with omission meaning all. The description's elaboration ('exact device name (eth0); omit it for all') largely restates the schema, so baseline 3 applies.

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?

States a specific verb+resource (shows the kernel's ARP cache), its exact data source (/proc/net/arp), and its scope (daemon's network namespace). It explicitly distinguishes itself from network/connections and network/ping, so an agent can select it without opening a schema.

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

Usage Guidelines5/5

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

Names the alternatives explicitly with conditions: network/connections for sockets/connections and network/ping for reachability. It also tells the agent when NOT to expect results (cache, not a scan; IPv6 excluded), leaving nothing to inference.

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