Skip to main content
Glama

cancel_codex_account_link

Terminate a pending Codex account-link device authorization session by providing the session ID. Stops the authentication process and prevents the account link from completing.

Instructions

Cancel a Codex account-link device-auth session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

Annotations are absent, so the description bears the full burden of behavioral disclosure. It identifies the action as a cancellation but says nothing about idempotency, side effects on an in-flight session, reversibility, error behavior, or auth requirements. For a cancel/destructive operation, these are material gaps.

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?

A single sentence with the verb front-loaded and no wasted words. The terseness is efficient, but it trades away behavioral detail that would materially improve the definition for an agent.

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

Completeness2/5

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

Although the tool is simple (one required parameter and an output schema), the missing annotations and absent usage guidance leave notable gaps for a cancellation operation. The agent receives no signal about side effects, idempotency, or the relationship to the start/status sibling tools, which is consequential for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for the undocumented session_id parameter. The phrase 'device-auth session' gives some domain context for what the ID refers to, but it does not explain how to obtain the session_id, its expected format, or what qualifies as a cancellable session. This is only marginal compensation.

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 ('Cancel') and a specific resource ('Codex account-link device-auth session'), where the phrase 'device-auth session' adds useful granularity beyond just 'account link'. However, it does not explicitly call out sibling tools like start_codex_account_link or get_codex_account_link_status, relying instead on the natural contrast of the verbs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. It never mentions that this is the inverse of start_codex_account_link, when cancellation is appropriate (e.g., aborting a pending or stale device-auth flow), or whether get_codex_account_link_status should be consulted first. The agent is left to infer usage entirely from the tool name.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RPasquale/lightbulb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server