Skip to main content
Glama
AdGuard DNS API MCP Server

AdGuard DNS API MCP Server

by Ankur1911

getDevice

Read-onlyIdempotent

Retrieve details for a specific device by ID, including its configuration and DNS connection information.

Instructions

Gets a device by ID

Returns details of a specific device. Use this endpoint to retrieve device configuration and DNS connection information.

Calls GET /oapi/v1/devices/{device_id}.

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": {
      "device_id": "<device_id>"
    },
    "name": "getDevice"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYesDevice ID, as returned by getDevices
X_Account_IdNoOptional ID of the account to operate on. Defaults to the authenticated user's own account. Use GET /oapi/v1/accounts to list available accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety and idempotency profile is covered structurally. The description adds that the response contains device configuration and DNS connection information, which is useful given there is no output schema, but it says nothing about lookup failure behavior (e.g., unknown ID) or account scoping.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The verb and resource are front-loaded, but line two ('Returns details of a specific device') largely restates line one rather than adding information. The final line naming the HTTP route is compact and mildly useful, so the waste is limited but real.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter read tool with full schema coverage and complete read-only annotations, the description supplies what an agent needs: the lookup key, the scope of the result, and the kind of data returned. Only error-path and permission behavior are absent, which is a minor gap at this complexity.

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%, so both device_id (including its provenance from getDevices) and X_Account_Id are fully documented in the input schema. The description adds no format, validation, or scoping detail beyond that, which is the expected baseline when the schema does the work.

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 gives a specific verb and resource ('Gets a device by ID') and clarifies scope by saying it returns details for a specific device, which implicitly contrasts with the sibling list tool getDevices. It does not explicitly name any sibling or state the difference in so many words, so it stops short of full differentiation.

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?

'Use this endpoint to retrieve device configuration and DNS connection information' gives a clear context for when to call it. However, it never states when not to use it, nor does it route the agent to alternatives such as getDeviceSettings or getDevices for adjacent needs, leaving selection to inference.

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