Skip to main content
Glama

get_gtt_orders

List all GTT orders or retrieve one by GTT order ID from Upstox for monitoring pending conditional trades.

Instructions

Read-only: list GTT orders, or fetch one by gtt_order_id.

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_gtt_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
gtt_order_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/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 deliver the key safety signal up front: 'Read-only'. However, it says nothing about pagination or result limits on the list mode, whether results are scoped to the authenticated account, permissions needed, or what an invalid gtt_order_id 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?

One short sentence, front-loaded with the read-only guarantee and then the two operating modes. Nothing is redundant and nothing needs to be re-read.

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?

The tool is simple (one optional parameter, no nesting, no output schema), and the description covers the mode switch and read-only nature that an agent needs to call it correctly. The remaining gap is list-mode size/pagination behavior, which matters for a listing endpoint but is a secondary concern here.

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% and the single parameter is documented only as a bare string, so the description does real work by explaining that gtt_order_id selects single-order retrieval while its absence triggers listing. It stops short of stating the ID format or where such an ID comes from.

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 pair (list / fetch one) and a specific resource (GTT orders), and the condition that switches between the two modes is explicit. It does not need to differentiate from siblings, since all listed siblings operate on unrelated resources, but it also spends no words on sibling routing.

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 rather than stated: an agent can infer that supplying gtt_order_id fetches a single order and omitting it lists all. There is no explicit 'use this when' framing, no mention of when not to use it, and no reference to any alternative tool for GTT-related operations (e.g. placing or modifying GTT orders).

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