Skip to main content
Glama

FELPRA Trading Intelligence

Fetch Document

fetch
Read-onlyIdempotent

Purpose: ChatGPT-connector-standard document fetch by id from search results. Namespaces: tool:{name} returns the tool's full documentation and how to call it; resource:{uri} returns the resource's live data (core resources resolved server-side — also the bridge for clients without MCP resource support, e.g. Gemini); signal:{market}:{symbol} returns the symbol's latest combined signal. Triggers: ChatGPT connectors / Deep Research call this after search. Clients without MCP resource support can call it directly with a known resource id, e.g. fetch("resource:market://global/summary"). When to call: whenever the full content behind a search result id is needed. Prerequisites: a valid id — from search results or a known namespace id. Next steps: for tool docs, call the named tool via tools/call; for signals, explain_decision for deeper evidence. Caveats: uncovered resource uris return description-only text (no fabricated data). text is a JSON document for resource/signal ids. Output: {id, title, text, url, metadata, disclaimer, is_investment_advice, data_classification} — flat envelope, OpenAI fixed shape. Output nature: Observed signal state computed from live market prices each cycle. signal_score is an internal ranking score, not a probability; bias is its sign. Context for the user's question, not investment advice.

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": {
      "id": "<id>"
    },
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesdocument id — "tool:{name}", "resource:{uri}", or "signal:{market}:{symbol}" (market: crypto / kr_stock / us_stock)

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
textNo
titleNo
metadataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. Beyond that, the description adds a genuinely useful behavioral caveat — uncovered resource URIs return description-only text with no fabricated data, and `text` is a JSON document for resource/signal ids. It loses a point for not clarifying size/truncation behavior on large documents.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The labeled Purpose/Triggers/Caveats/Next steps structure is front-loaded and scannable, but content is duplicated: with an output schema present, the full "Output: {id, title, text, url, ...}" field list is redundant, and the "Output nature" paragraph about signal_score and bias is verbose justification that only applies to one of three namespaces. The namespace line is also a single run-on sentence packing three distinct behaviors.

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 one-parameter fetch, all the decision-relevant pieces are present: what ids look like, what comes back per namespace, the fallback when a URI is uncovered, and where to go next. The output schema already documents the return envelope, so the remaining redundancy is a style problem rather than a completeness gap.

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 100% and the schema already lists the three id formats, so the schema carries the baseline. The description goes beyond it by explaining what each prefix returns (full tool docs, live resource data, latest combined signal) and gives a concrete example call, which is real added meaning rather than restatement.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The purpose line names a specific verb and resource ("document fetch by id from `search` results") and qualifies it against siblings: `search` produces the ids and `explain_decision` provides deeper signal evidence. The three namespaces (tool:/resource:/signal:) further pin down exactly what kind of object is being retrieved, so an agent can distinguish this from every listed sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit "Triggers", "When to call", and "Prerequisites" sections state the condition (a valid id from `search` or a known namespace id) and name the alternatives — calling the named tool via tools/call, or explain_decision for signals. "Next steps" routes the agent onward, which is unusually complete guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.