Skip to main content
Glama

get_token_status

Check Upstox API token health, including expiry (ISO/IST), expired status, renewal strategy, pending requests, auth-port ownership, and scheduler state without exposing secrets.

Instructions

Token health: preview, expiry (ISO + IST), expired flag, renewal strategy, pending request, auth-port ownership, scheduler state. Never returns secrets.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose a security-relevant trait ('Never returns secrets') and the returned state fields, which is real value. However, it does not say whether the call is purely local or hits the auth server, whether it can trigger a refresh or side effect, or how expired/pending states are surfaced (flags vs errors).

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 compact sentences, front-loaded with the resource and field inventory, with the security guarantee placed last where it reads as a scoping caveat. Every clause maps to a returned field or a constraint; no filler.

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?

With no output schema, the description must characterize the return payload, and it does so via a field list plus the 'no secrets' caveat. But several fields are cryptic without explanation ('preview', 'auth-port ownership', 'scheduler state'), and it omits what happens when the token is expired or a request is pending — gaps that matter for a diagnostic tool.

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 there is no parameter semantics to explain and the baseline of 4 applies; nothing in the description misleads about inputs.

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 the resource (token health) and enumerates exactly what state it reports — expiry, expired flag, renewal strategy, pending request, scheduler state — which distinguishes it from the mutating siblings renew_token and request_access_token. It lacks an explicit verb (inspect/report), so the read intent is inferred from the field list rather than stated.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites, and no routing to alternatives such as renew_token (to act on an expired token) or request_access_token (to initiate a pending request), despite those siblings appearing in the catalog. The presence of 'renewal strategy' and 'pending request' fields hints that this tool is the inspection step before renewal, but the agent must infer that.

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