Skip to main content
Glama

connection_status

Verify IB Gateway or TWS connectivity and inspect server version, managed accounts, error buffer, and active subscription count to diagnose trading connection issues.

Instructions

Check the IB Gateway/TWS connection status: connected, server version, managed accounts, error buffer, active subscriptions count.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/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 discloses the return payload (connected flag, server version, managed accounts, error buffer, subscription count), which establishes this as a non-destructive read, but says nothing about permissions, whether it errors when the gateway is down, latency, or side effects.

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 front-loaded sentence: the action and target come first, followed by a compact colon-delimited list of what is reported. 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 zero-parameter tool with no output schema, the description does the important work of enumerating what the call reports, so an agent knows what it gets back. It leaves out edge-case behavior such as the result when the gateway is disconnected, which keeps it from a 5.

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?

Zero parameters means there are no semantics to clarify, giving a baseline of 4 by rule, but the description's enumerated fields describe outputs rather than parameter meaning and are not framed as a return contract. The listing is useful context but does not function as parameter guidance.

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 ('Check') and a specific resource ('IB Gateway/TWS connection status'), then enumerates the returned fields. An agent can distinguish it from connection_reconnect (which acts on the connection) and from error_log/account_summary (which report subsets of this data), though no sibling is named explicitly.

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 only implied: it is clearly a diagnostic read to perform when connectivity or session state is in question. There is no explicit statement of when to prefer it over error_log, account_summary, or connection_reconnect when the gateway is disconnected.

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

Deploy Server

Other Tools