Skip to main content
Glama
AdGuard DNS API MCP Server

AdGuard DNS API MCP Server

by Ankur1911

getDeviceSettings

Read-onlyIdempotent

Retrieve a device's current protection and DNS-over-HTTPS authentication settings so you can review or verify its configuration.

Instructions

Gets device settings

Returns the current settings of a device, including protection and DNS-over-HTTPS authentication preferences.

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

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": "getDeviceSettings"
  }
}

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

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds value beyond that by naming the underlying endpoint (GET /oapi/v1/devices/{device_id}/settings) and previewing what the payload contains, which matters since no output schema exists.

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?

Short and front-loaded, with the endpoint reference last as supporting detail. The opening line "Gets device settings" largely restates the tool name, making it the one sentence that does not fully earn its place.

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 strong annotations and fully documented schema, this is nearly sufficient: purpose, data returned, and endpoint are all present. The remaining gap is the absence of any distinction from getDevice, which an agent would need in order to pick correctly.

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 and X_Account_Id are already documented in the schema, including the cross-reference to getDevices and the account-listing endpoint. The description only echoes device_id through the path template and adds no new parameter meaning, so the baseline 3 applies.

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?

States a specific verb and resource ("Gets device settings") and clarifies the scope as the current settings of a device, including protection and DNS-over-HTTPS authentication preferences. It does not, however, distinguish itself from the sibling getDevice, so an agent must infer the boundary between device metadata and device settings.

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?

Usage is implied by the enumerated return contents, which tell an agent when the data would be relevant. There is no explicit when-to-use or when-not-to-use guidance, and no mention of choosing this over getDevice for related device information.

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