Skip to main content
Glama

Set device access

set_device_access
DestructiveIdempotent

Allow or block a network device by MAC address, with a preview-only mode until confirm is true to prevent unintended router changes.

Instructions

Allow or block a device by MAC. Args: mac (string), allow (boolean). Call with confirm=false first to preview; it only changes the router with confirm=true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_device_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare this destructive and idempotent, and the description adds valuable workflow context: the tool can preview without making changes and only mutates with confirm=true. It does not describe side effects such as whether blocking disconnects an active device or what the preview returns.

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 compact and front-loaded: purpose first, then parameters, then the confirmation workflow. Every sentence contributes directly to correct invocation.

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 destructive access-control tool, it covers the core invocation and the preview safeguard. It omits permissions/auth requirements, the impact on the affected device, what preview returns, and the schema's args wrapping.

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 coverage is 0%, so the description must compensate. It names mac and allow and explains confirm's preview/mutation behavior, but it does not clarify that these fields belong inside the args object, nor does it state requiredness or the default confirm=false.

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 states a specific verb and resource: 'Allow or block a device by MAC.' It is clear enough to distinguish the action from read/status tools, though it does not explicitly differentiate this from the sibling set_access_control.

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 gives concrete usage guidance: call first with confirm=false to preview, and only confirm=true will change the router. It does not name alternatives or when not to use this tool, but the operational sequence is clear.

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