Skip to main content
Glama

auth

Destructive

Authenticate the MCP session with Quadratic.

Actions: • login() — Start an OAuth device authorization flow. Returns a URL the user must open in a browser to authorize. The flow is completed by confirm_login. • confirm_login(device_code) — Complete an in-progress login by polling for user authorization. If the response indicates the user has not yet authorized, this action can be called again with the same device_code to continue polling. confirm_login is idempotent: if a later tool call reports "Not authenticated on this connection", call confirm_login again with the same device_code to re-establish auth (some clients use a new session per request, so the session that ran the tool may differ from the one that logged in). • set_token(token, email?) — Set a JWT directly (used when the OAuth device flow is not available). • logout() — Clear saved authentication for the current session.

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": {
      "action": "<action>"
    },
    "name": "auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform: login, confirm_login, set_token, or logout
paramsNoParameters for the action (see tool description)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / title
      Removed value: -"AuthAction"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only give a coarse safety profile (destructive, openWorld, not idempotent), while the description discloses the real behavior: the flow returns a browser URL, confirm_login polls and may need repeated calls, and logout clears saved credentials. The session-per-request caveat is genuinely non-obvious operational context that no annotation conveys. The per-action idempotency note for confirm_login refines rather than contradicts the tool-level idempotentHint=false, which covers the multi-action tool as a whole.

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 action-name-plus-dash bullet structure is easy to scan and front-loads the core purpose before the details. The final parenthetical explaining client session behavior is dense and slightly roundabout, but it carries real information rather than filler.

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?

For a four-action auth tool with no output schema and 100% schema coverage, this covers the critical paths: how to start, how to finish, how to recover, and how to log out. It stops short of describing what confirm_login or set_token return on success, or the error shape for an expired device_code, but nothing an agent needs to invoke it correctly is missing.

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

Parameters5/5

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

The schema's params field is an untyped bag ('see tool description'), so the description carries the real burden and does it: it names device_code for confirm_login, token and optional email for set_token, and ties each to its action. That is meaningfully more than the schema provides.

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?

The opening sentence states a specific verb and resource — authenticate the MCP session with Quadratic — and the bullet list then enumerates the four distinct modes (login, confirm_login, set_token, logout) with their exact effects. No sibling tool shares this purpose, and an agent can tell immediately this is the auth entry point rather than a document/data operation.

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?

Each action is scoped to a condition: login starts the device flow, confirm_login completes/polls it, set_token is explicitly for 'when the OAuth device flow is not available', and logout clears the session. It even names the recovery path (re-call confirm_login with the same device_code when a later tool reports 'Not authenticated on this connection'), which is exactly the alternative-selection guidance an agent needs.

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.