Skip to main content
Glama

error_log

Retrieve the last N errors from the Interactive Brokers connection to diagnose recent failures. Set count to limit results (default 50, max 200).

Instructions

Get the recent error log ring buffer. Returns the last N errors from the IB connection.

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

Input Schema

NameRequiredDescriptionDefault
countNoNumber of recent errors to return (default: 50, max: 200)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose meaningful behavior — the source is a bounded ring buffer of IB-connection errors and only the most recent entries survive — but it says nothing about whether reading consumes entries, how long errors persist, or what an error entry contains.

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?

Two short sentences with the resource and scope front-loaded; nothing extraneous. Minor redundancy between 'ring buffer' and 'last N errors', which express nearly the same recency bound.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool this is nearly sufficient, but with no output schema the description should hint at the fields of a returned error entry, and it also omits whether the buffer is connection-scoped versus account-scoped beyond the phrase 'IB connection'.

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 description coverage is 100%, with the count parameter already documenting its default of 50 and max of 200. The description's 'last N errors' adds only framing, not semantics beyond the schema, so the baseline 3 applies.

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: 'Get the recent error log ring buffer', scoped further to 'errors from the IB connection'. This is unmistakably a diagnostics read and is distinguishable from connection-oriented siblings like connection_status, though the description never explicitly contrasts them.

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: an agent can infer this is for inspecting recent connection errors, but there is no explicit when-to-use, no exclusion conditions, and no pointer to connection_status or connection_reconnect as complements.

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