Skip to main content
Glama

mac_lookup

Look up the vendor or manufacturer of a MAC address using the OUI database. Identify network device origins quickly.

Instructions

Look up the vendor/manufacturer for a MAC address (OUI database).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
macYes

Implementation Reference

  • The mac_lookup tool handler function: an async MCP tool that takes a MAC address, uses AsyncMacLookup to look up the vendor/manufacturer from the OUI database, and returns {'mac', 'vendor'} or an error dict on failure.
    @mcp.tool()
    async def mac_lookup(mac: str) -> dict:
        """Look up the vendor/manufacturer for a MAC address (OUI database)."""
        try:
            lookup = AsyncMacLookup()
            await lookup.load_vendors()
            vendor = await lookup.lookup(mac)
            return {"mac": mac, "vendor": vendor}
        except Exception as e:
            return {"error": str(e), "tool": "mac_lookup", "mac": mac}
  • The tool is registered with the MCP framework via the @mcp.tool() decorator on the async mac_lookup function.
    @mcp.tool()
  • Import of AsyncMacLookup from mac_vendor_lookup library, used by the mac_lookup handler to perform vendor lookups against the OUI database.
    from mac_vendor_lookup import AsyncMacLookup
Behavior2/5

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

No annotations are provided, and the description does not disclose behavioral traits such as OUI database freshness, rate limits, error behavior, or any side effects. The agent gets minimal insight beyond the basic operation.

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?

The description is a single, self-contained sentence without fluff. It communicates the essential information concisely and is front-loaded with the core action.

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 simple lookup tool with one required parameter and no output schema, the description is functionally complete. However, it could improve by mentioning expected MAC address format or what the response includes (e.g., vendor name).

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

Parameters2/5

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

The input schema has 0% description coverage for the 'mac' parameter. The description adds that it is an OUI database lookup, but fails to specify allowed formats (e.g., colon-separated, hyphen-separated, case sensitivity). This leaves ambiguity for the agent.

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 clearly states the tool's purpose: lookup vendor/manufacturer for a MAC address using OUI database. It specifies the resource (MAC address) and the action (lookup), and the purpose is distinct from sibling tools like cert_check or dns_lookup.

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

Usage Guidelines3/5

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

The description implies usage for MAC vendor lookup but does not provide explicit guidance on when to use this tool versus alternatives, nor does it mention any exclusions or prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aaronckj/mcp-nettools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server