Skip to main content
Glama

Cemig: Download de Contas para Profissionais

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

A3.8/5.0
Behavior3/5

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

Annotations indicate idempotentHint=true and destructiveHint=false. The description adds context about the authentication flow (browser login, token persistence) and the optionality of arguments, which is beyond annotations. It doesn't deeply describe the behavior of the token validation or session lifecycle, but given annotations cover safety, this is adequate. No contradiction found.

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 a single paragraph but contains dense, helpful information. It front-loads the audience (IDE agents) and main action (log in in the browser, copy token), then elaborates on the two options. It could be slightly more structured (e.g., bullet points), but it remains concise with no filler words, earning a 4.

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?

The tool is simple with one optional parameter, no output schema, and no nested objects. The description covers the two usage modes (config-based permanent and session-only), explains the parameter semantics, and gives context about the token format (JWT). For this complexity, it is nearly complete; it could mention expected return values (e.g., success/failure response) but that is minor.

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 schema has 0% description coverage and only declares 'token' as a string with no description. The description compensates by explaining the token parameter: it should be a JWT pasted by the user for session-only login, and that omitting it returns a login link. This adds significant meaning beyond the schema, upgrading from baseline 3 to 4, though it could clarify the token format (e.g., JWT) more explicitly.

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 identifies the tool's purpose: to authenticate IDE agents by logging in via browser or providing a token. It specifies the resource (authentication) and the action (authenticate), and distinguishes itself from siblings by focusing on the login mechanism, though it does not explicitly name alternatives. It reads as a clear purpose statement.

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

Usage Guidelines4/5

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

The description provides concrete usage instructions: recommend adding a bearer token to the server config for permanent access, or calling with a token for session-only login, or calling with no args to get the login link. It clearly states when to use the tool (when needing to authenticate) and the modes of invocation, though it doesn't explicitly mention when not to use it compared to alternatives.

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.