Skip to main content
Glama
Midas-MCP

Midas-MCP

get_pending_orders

Read-only

Lists unfilled orders and their order IDs, optionally filtered by symbol; omit the symbol to retrieve pending orders across all accounts and markets in one call.

Instructions

Lists orders that haven't filled yet, with their order IDs. Without symbol, returns the pending orders of all accounts (BIST, TEFAS, US) in one call; with symbol, only that instrument's orders.

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

Input Schema

NameRequiredDescriptionDefault
marketNoCountry/market hint when several instruments share the symbol (e.g. GTM: a TEFAS fund and a NASDAQ stock). Without it, the instrument you hold wins; otherwise Midas's first exact match is used and the candidates are listed in the result.
symbolNoOptional symbol; leave empty for all pending orders

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / market / description
      Previous value: -"Aynı sembolü birden çok enstrüman taşıyorsa (ör. GTM: TEFAS fonu ve NASDAQ hissesi) ülke/piyasa ipucu. Verilmezse önce pozisyondaki enstrüman, yoksa Midas'ın ilk birebir eşleşmesi seçilir ve adaylar sonuçta listelenir."New value: +"Country/market hint when several instruments share the symbol (e.g. GTM: a TEFAS fund and a NASDAQ stock). Without it, the instrument you hold wins; otherwise Midas's first exact match is used and the candidates are listed in the result."
    • changedInput schema / properties / symbol / description
      Previous value: -"İsteğe bağlı sembol; tüm bekleyen emirler için boş bırak"New value: +"Optional symbol; leave empty for all pending orders"
  2. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / market
      Added value: +{
      +  "description": "Aynı sembolü birden çok enstrüman taşıyorsa (ör. GTM: TEFAS fonu ve NASDAQ hissesi) ülke/piyasa ipucu. Verilmezse önce pozisyondaki enstrüman, yoksa Midas'ın ilk birebir eşleşmesi seçilir ve adaylar sonuçta listelenir.",
      +  "enum": [
      +    "TR",
      +    "US"
      +  ],
      +  "type": "string"
      +}
  3. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds that unfilled orders across BIST, TEFAS and US accounts are returned together and that order IDs are included, but says nothing about ordering, freshness, or volume of results.

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 verb and resource, then the branch on symbol. No redundant or filler wording.

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 two-parameter, annotation-covered read tool with no output schema, the description conveys what comes back (pending orders with IDs) and the account scope. Only minor gaps remain, such as ordering or whether partially filled orders count.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented, including the market enum and its matching fallback. The description reinforces the empty-symbol semantics but adds no detail on the market parameter or on format of symbol values.

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?

States a specific verb and resource ('Lists orders that haven't filled yet') and adds the return payload ('with their order IDs'). The 'pending' qualifier distinguishes it from a general transactions listing, though it never names a sibling explicitly.

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?

Gives explicit conditional guidance: omit symbol for all accounts in one call, supply symbol for a single instrument. That is clear when-to-use context for the one optional parameter, but it offers no exclusion against alternatives such as get_transactions.

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