Skip to main content
Glama
sohampatwardhan

Claude Code MCP Server

Claude Code auth status

claude_auth_status
Read-onlyIdempotent

Checks whether the local Claude Code CLI is signed in by running its auth status command, returning the sign-in state as structured output so agents can verify authentication before starting a session.

Instructions

Report whether the local Claude Code CLI is signed in, via claude auth status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
cliYesCLI output with terminal control sequences removed.
emailYes
orgNameYes
loggedInYes
authMethodYes
subscriptionTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds genuinely useful context beyond that: it reports on the *local* CLI specifically and reveals it delegates to `claude auth status`, clarifying scope and failure surface.

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 zero filler. The core action and target are stated first, with the implementation detail appended compactly.

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?

An output schema exists so return values need no explanation, annotations cover safety, and there are no parameters to document. For a simple read-only status probe, nothing further is required for correct invocation.

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?

The tool takes zero parameters, so the baseline is 4. The description correctly implies no inputs are needed, and there are no parameter semantics to misrepresent.

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 (report) and resource (local Claude Code CLI sign-in state), and names the underlying command. It is clearly distinguishable from the sibling tools, which handle cloud sessions and follow-ups rather than local auth.

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 name and by 'whether the local CLI is signed in' — an agent can infer this is a precondition check. However, there is no explicit statement of when to call it (e.g., before other Claude Code operations) and no mention of alternatives or exclusions.

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