Skip to main content
Glama

login

Authenticate RunAPI by opening a browser PKCE flow and saving the API key to ~/.config/runapi/config.json, with an optional force flag to re-authenticate from local config.

Instructions

Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "login"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoRe-run browser login when the current credential comes from the local config file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful traits: it is an interactive browser-based OAuth/PKCE flow and it writes the API key to a specific file path. It omits whether the call blocks while the user completes the browser step, whether existing credentials are overwritten, and how failures surface — gaps that matter for an interactive tool.

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 sentence with zero filler, front-loading the action, the mechanism, and the observable side effect. Nothing to trim and nothing buried.

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

Completeness3/5

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

For a one-parameter tool with no output schema and no annotations, the description is adequate but leaves an agent guessing on interaction semantics: whether it blocks on a browser window, whether it can be called in a non-interactive environment, and what a caller should do on failure. These are non-trivial for an auth bootstrap tool.

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?

Schema description coverage is 100%, so the `force` parameter is already fully documented as re-running browser login when the credential comes from the local config file. The description never mentions `force`, but the schema does the work, so baseline 3 applies.

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 (Authenticate) plus the resource (RunAPI) and the exact mechanism (browser PKCE login flow) and its persistence side effect (~/.config/runapi/config.json). No sibling tool overlaps with authentication, so there is nothing to confuse it with; an agent can identify this as the credential-bootstrap tool immediately.

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 only implied: an agent infers this is the tool to call when unauthenticated, but the description never says so, nor does it state prerequisites (e.g. must run before other RunAPI tools), when NOT to re-authenticate, or what the browser flow requires of the caller. There are no competing alternatives to route against, which keeps it at minimum-viable rather than worse.

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

Deploy Server

Other Tools