Skip to main content
Glama

renew_token

Renew an expired Upstox access token using the configured login strategy; set force=true to bypass the 2-minute throttle and 3-failure pause. TOTP renewal revokes the current token.

Instructions

Renew the access token now using the configured strategy: TOTP login (UPSTOX_TOTP_SECRET+UPSTOX_PIN) -> Access Token Request (UPSTOX_NOTIFIER_ENABLED=1) -> OAuth login URL. WARNING: TOTP login revokes the current token. force=true bypasses the 2-minute throttle and the 3-failure pause.

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

Input Schema

NameRequiredDescriptionDefault
forceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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 safety burden and does well: it warns that TOTP login revokes the current token, documents the 2-minute throttle and the 3-failure pause, and explains that force bypasses both. It does not state what happens to the new token (whether it is returned, persisted, or both), leaving the post-call effect partly unspecified.

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?

Two sentences, front-loaded with the purpose, then the strategy chain and warnings. The arrow notation and environment variable names are dense but information-bearing, and no sentence is 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 one-parameter authentication tool with no annotations and no output schema, the description covers strategy selection, destructive side effects, and throttling behavior, which is most of what an agent needs. The notable gap is return behavior: it does not say whether the new token is returned in the response or only stored, which matters given there is no output schema.

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?

Schema coverage is 0%, so the description must define the single parameter, and it does: force=true is explicitly said to bypass the 2-minute throttle and the 3-failure pause. The default (false) is only implied, keeping it short of full parameter documentation.

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 names a specific verb and resource ('Renew the access token') and adds the concrete fallback strategy chain (TOTP login -> Access Token Request -> OAuth URL), which tells an agent exactly what this operation does. It does not explicitly contrast itself with the sibling 'request_access_token', so sibling differentiation is left implicit.

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 implied by the imperative 'Renew the access token now' and by naming the configured strategy chain, which suggests when each path is attempted. However, there is no explicit statement of when to use this rather than 'get_token_status' or 'request_access_token', and no stated preconditions for calling it.

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