Skip to main content
Glama

Fetch Analysis Result

fetch_analysis_result
Read-onlyIdempotent

Fetch the result or progress of a previously initiated StockLens analysis. Returns status (in_progress/complete/failed), progress percentage, and full result when complete. Each call returns the current state once; it does not wait for completion. While status is in_progress, retry_after_seconds is the earliest sensible time to check again — check again only if the user asks to continue. Complete results include composite score, domain breakdowns, key insights, and may include a Plus Analysis AI narrative.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
analysis_idYesThe analysis_id returned by initiate_analysis

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNo
statusYes
analysis_idYes
progress_pctNo
error_messageNo
retry_after_secondsNo

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds valuable behavioral context beyond annotations: status values, progress percentage, non-blocking behavior, retry timing semantics, and the contents of complete results. This fully informs the agent about what to expect.

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?

The description is three sentences long, front-loaded with the core purpose, and every sentence adds useful information. No filler or repetition of schema details.

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

Completeness5/5

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

Given the tool's simplicity (one parameter, rich annotations, and an output schema), the description is complete. It covers statuses, progress, retry behavior, and result contents, so the agent has all necessary context to invoke and interpret the tool correctly.

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 there is only one parameter, so the schema already documents analysis_id. The description adds meaningful context by explaining that analysis_id comes from initiate_analysis and refers to a previously initiated analysis, which helps the agent understand provenance and usage.

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 description uses a specific verb ('Fetch') and clearly identifies the resource ('result or progress of a previously initiated StockLens analysis'). It distinguishes itself from sibling tools like initiate_analysis by focusing on retrieval of an existing analysis.

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?

Provides clear usage context: each call returns current state once, does not wait, and retry_after_seconds indicates the earliest sensible check time. It also advises checking again only if the user asks to continue, which is actionable guidance. It does not explicitly name alternatives, but the context is sufficient.

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.

TDQS

A4.2/5.0
Disambiguation4/5

Each tool has a distinct function: initiate_analysis starts an async job, fetch_analysis_result retrieves that job's status/result, get_market_summary returns the latest pre-computed score, and get_portfolio_insights covers multiple tickers. The only mild overlap is between fetch_analysis_result and get_market_summary, but descriptions make the difference clear.

Naming Consistency4/5

Tool names mostly follow a verb_noun pattern (fetch, get, get, initiate), with only 'ping' breaking the convention. The mix of 'fetch' and 'get' is a minor inconsistency but doesn't obscure meaning.

Tool Count5/5

Five tools is well-scoped for a stock analysis server. Each tool covers a distinct part of the workflow: initiating analysis, fetching results, getting summaries, portfolio overview, and a health check. No bloat or excessive granularity.

Completeness4/5

The analysis lifecycle is covered end-to-end: initiate, fetch, and get latest summary, plus portfolio-level insights. The only notable gap is lack of a 'list analyses' or 'cancel analysis' tool, but that's not critical for the core purpose.

Resources