Skip to main content
Glama

Reset the authorization code of a domain

domain_authorization_code_reset
Destructive

Generate a new authorization code for a domain, invalidating the previous code; read the new code using domain details.

Instructions

Generate a new authorization code for a domain; the previous one stops working. It is not returned: read it with domain_details if the user asks. The user confirms outside the conversation; if the result is confirmation_pending, call again with the same arguments and the returned confirmation_id once the user answered.

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": {
      "domain": "<domain>"
    },
    "name": "domain_authorization_code_reset"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDomain name, e.g. example.com (Unicode accepted).
accountNoAccount name; the default account when omitted.
confirmation_idNoIdentifier returned by a pending confirmation, once the user has answered on the page opened in their browser. Never invent one.

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Annotations already flag destructiveHint=true and readOnlyHint=false; the description adds the concrete effect (the old code is invalidated), the non-obvious fact that the new code is not returned in the response, and the asynchronous confirmation handshake including the confirmation_pending result. That is substantial behavioral context beyond the structured hints.

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?

Three short sentences with no filler: the effect first, then the read alternative, then the confirmation flow. Every sentence carries actionable information and the most important constraint is front-loaded.

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?

A destructive mutation tool with an output schema and full parameter coverage; the description still covers the side effect, the missing return value, and the multi-step confirmation case an agent would otherwise mishandle. Nothing needed to invoke it correctly or handle its results is absent.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description ties confirmation_id to the retry workflow ('call again with the same arguments and the returned confirmation_id once the user answered'), which adds procedural meaning beyond the field's terse schema note. Domain and account are left to the schema, which is acceptable at full coverage.

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?

States a specific verb and resource ('Generate a new authorization code for a domain') plus the key consequence ('the previous one stops working'). It also separates itself from domain_details by declaring the code is not returned here, so an agent can route correctly without opening another 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?

Gives explicit routing guidance: use domain_details if the user asks to read the code. It also spells out the confirmation protocol — user confirms outside the conversation, and on a confirmation_pending result the agent must retry with the same arguments plus the returned confirmation_id. Both the when-to-use and the follow-up branch are unambiguous.

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

Deploy Server

Other Tools