Skip to main content
Glama
jaseonline

unifi-console-mcp

by jaseonline

unifi_console_dynamic_dns

Destructive

Preview and apply Dynamic DNS changes on a UniFi gateway: create, update, or delete entries with fingerprint confirmation and environment-based tokens.

Instructions

Preview, then apply, the creation, update or deletion of a Dynamic DNS entry on the gateway.

Two steps, always: call with confirm=false to get a read-only preview (after, warnings, errors, a fingerprint); call again with the same fields plus confirm=true and that fingerprint to apply. An update keeps the entry's id and sends the whole entry; because the console never shows the stored token, an update must be given token_env too (the current token if only other fields change, or the new one when rotating it). The provider token is never a tool argument: pass token_env, the name of a UNIFI_DDNS_* environment variable in the server's environment. The token is write-only, so it is not read back (the result lists it under secret_fields_not_verified) and it is not journalled. Deleting an entry discards its token for good: the delete needs discard_token=true, and its rollback can only recreate the entry with a fresh token. Applying also needs UNIFI_CONSOLE_ENABLE_WRITES=true and 'dynamic_dns' in UNIFI_CONSOLE_WRITE_ENTITIES. Every write is journalled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already flag this as non-readonly and destructive, but the description adds far more: the token is write-only, never read back (listed under secret_fields_not_verified), not journalled; deleting discards the token permanently and rollback can only recreate with a fresh one; every write is journalled. That is rich behavioral context beyond the structured flags.

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?

It is front-loaded with the two-step pattern and well ordered (preview/apply, then update, then token, then delete), and every sentence carries load for a destructive secret-handling tool. It is dense and runs long, but the length is mostly justified by the complexity.

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?

For a destructive, multi-step, secret-bearing operation it covers workflow, prerequisites, parameter interplay, and side effects, and an output schema exists so return-value detail is not needed. An agent has everything required to call it correctly.

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

Parameters5/5

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

Beyond the per-field schema text, the description supplies cross-field semantics the schema cannot express: an update keeps the id and must resend the whole entry plus token_env even when only other fields change; delete requires discard_token=true with confirm=true; fingerprint must come from the preview of exactly this change. These interdependencies materially help correct invocation.

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 opening sentence names a concrete verb set (creation, update, deletion) and a specific resource (a Dynamic DNS entry on the gateway), and the tool name separates it from the static-DNS sibling. An agent knows exactly what domain this operates in without opening the 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?

It states the mandatory two-step workflow, exactly when to pass confirm=false versus confirm=true plus fingerprint, and the environment prerequisites (UNIFI_CONSOLE_ENABLE_WRITES=true, 'dynamic_dns' in UNIFI_CONSOLE_WRITE_ENTITIES). Nothing about when/how to invoke is left to inference.

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