Skip to main content
Glama
IBKR Agent Harness MCP Server

IBKR Agent Harness MCP Server

by RyanYang053

fetch_public_url

Fetches public HTTP(S) pages through SSRF protection and caps returned text, keeping untrusted external content within context budgets.

Instructions

SSRF-guarded public HTTP(S) page reader bounded for context budgets. Untrusted external data.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "fetch_public_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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, and it does deliver real behavior: URLs are SSRF-guarded (internal/private targets presumably rejected), output is truncated to a context budget, and results are untrusted input. That is meaningful for a fetch tool and worth credit. It is still silent on failure modes for blocked URLs, redirect handling, and non-HTML content types.

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 tight sentences, no filler, with the primary capability front-loaded and the trust warning second. Nothing could be removed without losing signal.

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 simple two-parameter fetch tool the definition covers the essentials — what it fetches, its safety constraint, and its output-size bound — and no output schema exists to explain the return shape. However, an agent still cannot tell what the response looks like (raw text? markdown?), how truncation surfaces, or what happens on a blocked or unreachable URL.

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

Parameters2/5

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

Schema description coverage is 0% and neither parameter is named or explained in the description. "Bounded for context budgets" gestures at max_chars without stating that it truncates, its units, the default of 4500, or whether truncation is signaled in the result; url is left entirely to the schema. With two undocumented parameters, the description should compensate more than it does.

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?

"SSRF-guarded public HTTP(S) page reader" gives a specific verb (read/fetch) and resource (public HTTP(S) page), which clearly separates it from the sibling search_public_web — this one opens a URL you already have. It stops short of 5 only because it never names a sibling or states the contrast 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 implied rather than stated: the agent must infer that this is the right tool when it already holds a URL, versus search_public_web when it does not. The "Untrusted external data" tag supplies a useful operating caveat, but there are no explicit when-not conditions (e.g., non-public hosts, auth-required pages) and no named alternative.

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