Skip to main content
Glama
OnlyDNS MCP Server

OnlyDNS MCP Server

Official
by Onlydns

create_token

Provision a new API access token with defined permission scopes, allowed networks, restricted domains, and optional expiration to control access securely.

Instructions

Provision a new API access token with specific permission scopes, allowed networks, and optional expiration lifetime.

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

Input Schema

NameRequiredDescriptionDefault
scopesNoAssigned scopes (e.g. ["records:write"], ["read"], ["admin"])
expiresAtNoExpiration timestamp (ISO 8601) or lifetime duration in seconds
allowedZonesNoOptional list of restricted domains
allowedNetworksNoOptional list of CIDR IP allowlists (e.g. ["192.0.2.1/32"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.7

TDQS

B3.4/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden and does not meet it. It does not say whether the token secret is returned only once at creation, whether scopes can be widened later, or what permissions the caller needs — all critical for a credential-minting mutation.

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?

A single front-loaded sentence with the action first and the configurable dimensions after; there is no filler whatsoever.

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 four-parameter, zero-required-parameter create tool with a fully documented schema and no output schema, the description covers the surface area adequately. The gap is behavioral (secret disclosure, default scope implications) rather than structural.

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 the baseline is 3. The description reinforces scopes, networks, and expiration but adds no format or constraint detail beyond the schema, and it omits allowedZones entirely (it says 'allowed networks', not zones).

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 ('Provision') and resource ('new API access token') plus the key dimensions configured (scopes, networks, expiration). It is immediately distinguishable from delete_token and list_tokens by the creation verb, though it never explicitly contrasts with them.

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?

Provisioning a token is a well-understood operation, so the when-to-use is implied by the verb. But there is no guidance on prerequisites (e.g., caller permission level) or on when to use list_tokens/delete_token for lifecycle management, and no note that scopes default to records:write.

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