Skip to main content
Glama

logout

Invalidates the current Upstox access token and removes it from .env to end the active session; with auto-renewal enabled, a new token may be issued shortly after.

Instructions

Log out: DELETE /v2/logout (invalidates the access token) and clear it from .env. With auto-renewal enabled, the scheduler may obtain a new token shortly after.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/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 the destructive side effects (token invalidation, .env mutation) and the important limitation that auto-renewal can re-issue a token, undermining the logout. It does not cover error behavior (e.g. already-invalid token) or what the call returns.

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, side effect first and the auto-renewal caveat second. Every clause carries information an agent would otherwise have to guess at; nothing is padding.

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 zero-param, no-output-schema tool this is nearly complete: it explains the effect, the persisted-state change, and the key caveat about re-issued tokens. Minor gaps remain around failure modes and whether repeated calls are harmless.

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?

Zero parameters, so the baseline of 4 applies; nothing in the schema needs explanation and the description introduces no parameter confusion.

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 (log out) plus the concrete mechanism: DELETE /v2/logout invalidating the access token and clearing it from .env. The action is unambiguous and cannot be confused with the data-retrieval siblings, so no explicit sibling comparison is needed.

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?

Usage context is clear (call when ending a session) and it adds a genuinely useful caveat: with auto-renewal enabled, the scheduler may mint a new token shortly after. It stops short of explicit when-not guidance or naming an alternative tool, so it is clear context rather than full routing guidance.

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