Skip to main content
Glama

request_access_token

Sends a v3 access-token request for approval in the Upstox app or WhatsApp, then receives the token via a registered Notifier Webhook; force resends a pending request.

Instructions

Send an Access Token Request (v3): you approve a notification in the Upstox app/WhatsApp, then Upstox POSTs the token to the Notifier Webhook (needs UPSTOX_NOTIFIER_ENABLED=1 and a registered public webhook URL). force=true resends even if one is pending.

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

Input Schema

NameRequiredDescriptionDefault
forceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/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 well: it discloses that the token is delivered asynchronously via webhook POST rather than returned, that two environmental prerequisites must be satisfied, and that force=true bypasses the pending-request guard. It does not say what the call itself returns, how long the approval window lasts, or what happens if the webhook is unregistered.

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?

A single dense sentence that front-loads the action and then the approval flow, with the parameter note last. The parenthetical prerequisites are compact, though the packed phrasing requires careful reading.

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?

No output schema and no annotations, but the description compensates by explaining that the result arrives out-of-band at the webhook, which is the key thing an agent must know. It stops short of telling the agent to poll get_token_status or what the immediate response contains, a real gap for an async flow.

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?

Schema description coverage is 0%, so the description must define the single parameter, and it does: force=true resends even when a request is already pending, which implies the default suppresses duplicate sends. That is exactly the semantic the schema lacks.

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 states a specific verb and resource ('Send an Access Token Request (v3)') and describes the actual mechanism: user approves a notification, then Upstox POSTs the token to a Notifier Webhook. That mechanism alone separates it from a synchronous token getter, though it never names renew_token or get_token_status as alternatives.

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?

It gives the operational context and prerequisites for use: an approval step in the Upstox app/WhatsApp, UPSTOX_NOTIFIER_ENABLED=1, and a registered public webhook URL. What is missing is explicit routing — no statement that this is the first-time/notification-based path versus renew_token, and no exclusion of cases where it will fail.

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