Skip to main content
Glama

authenticate

Idempotent

MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header Authorization: Bearer <token> for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "" } after the user pastes, or with no args to get the link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenNo

Schema Changelog

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

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations indicate idempotentHint=true and destructiveHint=false, which align with the description's non-destructive nature. The description adds context about the token being non-expiring if added to config, and session-only if pasted. It also mentions the browser login flow. This goes beyond annotations by explaining the authentication flow and token persistence, which is valuable.

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?

The description is concise and front-loaded with the main purpose. It uses a colon to introduce the two usage modes, which is efficient. However, it could be slightly more structured (e.g., bullet points) but overall it's well-organized and not verbose.

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?

Given the tool's simplicity (one optional param, no output schema), the description covers the essential aspects: how to authenticate, the two modes, and the token handling. It doesn't mention error cases or what happens if the token is invalid, but for a simple auth tool, this is adequate. The description is complete enough for an agent to use it correctly.

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?

The schema has one optional parameter 'token' with no description. The description explains that the token is a JWT and how to use it: call with { token: "<jwt>" } after the user pastes, or with no args to get the link. This adds meaning beyond the schema, but the description doesn't elaborate on the token format or validation. Since schema coverage is 0%, the description compensates partially, but could be more explicit about the token's role.

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?

The description clearly states the tool's purpose: to authenticate with MCP.AI by logging in via browser and obtaining an access token. It distinguishes between two usage modes (permanent config vs session-only) and mentions the tool name 'authenticate' implicitly. It doesn't explicitly contrast with siblings, but the purpose is specific and actionable.

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?

The description provides explicit guidance on when to use this tool: for IDE agents like Cursor, and explains two usage scenarios: adding the token to server config for permanent connection, or pasting the token for session-only login. It also tells the agent to call with no args to get the link, and with token to complete login. This is clear and actionable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.