Skip to main content
Glama

start_auth_server

Starts an embedded OAuth authentication server for Upstox to handle login and callback requests, and returns the login URL needed to authorize access.

Instructions

Start the embedded auth helper (OAuth /login + /callback, /status) on AUTH_PORT (currently 9080). Returns the login URL. Only one process sharing the .env can own the port; owns_port tells you whether this one does. Stays up until stop_auth_server or process exit.

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": "start_auth_server"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the fixed port, the single-owner port constraint across processes sharing the .env, the owns_port signal, the return value (login URL), and the process lifetime. The main gap is failure behavior when the port is already held, though the ownership wording implies it.

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?

Four short sentences, each carrying distinct information: what starts, where, what is returned, the port-contention rule, and the lifetime. The most operationally important constraint is front-loaded and nothing is redundant.

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?

No output schema exists, yet the description still explains the return value (login URL plus owns_port). Combined with the disclosed lifetime and port-ownership rule, an agent has everything needed to start the server and reason about the result.

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 baseline is 4. The description appropriately frames AUTH_PORT as environment-derived configuration rather than a call-site argument, so the agent knows not to look for a port input.

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?

Uses a specific verb and resource ("Start the embedded auth helper") and immediately scopes it with the endpoints it serves (/login, /callback, /status) and the port it binds (AUTH_PORT, 9080). It is clearly distinguishable from the sibling stop_auth_server, which it names as the terminating counterpart.

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 makes the start/stop pairing explicit ("Stays up until stop_auth_server or process exit"), which tells the agent when this tool's lifecycle begins and ends. It doesn't state prerequisites or when not to call it versus other authorize_* siblings, but the usage context is clear and not misleading.

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