Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Inspect reusable analysis data and semantic elements

inspect_analysis_artifact
Read-onlyIdempotent

Read the durable datasets, stable semantic element IDs, and view bindings from one completed analysis run in the current conversation. Use this before resolving any chart-derived value or condition. The response exposes schemas, stable IDs, and derivations, not full row dumps. For a follow-up chart edit, request includeProgram=true to retrieve the exact saved code and revision linkage. Saved charts are not shown in chat; draw over time on the Spot Chart with live_chart. Each dataset has an inputId for internal_data.get. Reuse full calculation history for the same source and period; fetch missing periods or refreshed data when needed. This tool is generic and does not infer behavior from indicator names, labels, or user wording.

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": {
      "analysisRunId": "<analysisRunId>"
    },
    "name": "inspect_analysis_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
analysisRunIdYes
includeProgramNoReturn the original code, capabilities and revision linkage for a chart edit. Omit for dataset or semantic inspection.
displaySavedChartNoReturn the original saved result without recomputing or refreshing data. Its chart is not shown in chat; draw over time on the Spot Chart with live_chart.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / displaySavedChart / description
      Previous value: -"Reopen the original saved chart without recomputing or refreshing data. Returns its original result and observation timestamps."New value: +"Return the original saved result without recomputing or refreshing data. Its chart is not shown in chat; draw over time on the Spot Chart with live_chart."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavior: the response exposes schemas/IDs/derivations rather than full row dumps, saved charts are not rendered in chat, and each dataset carries an inputId for internal_data.get. It does not discuss failure modes for invalid or stale run IDs, but the disclosure beyond annotations is substantive.

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?

The operative instruction (call this before resolving chart-derived values) is front-loaded, then parameter guidance, then alternatives and caveats. Every sentence carries information, though the closing meta-note about not inferring behavior from indicator labels is wordier than necessary and slightly disrupts the parameter guidance flow.

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?

With no output schema, the description correctly explains the shape of what comes back (schemas, stable IDs, derivations, not row dumps), which is the main thing an agent needs. For a three-parameter, single-required-argument tool that is largely sufficient; only result-size or pagination limits are unmentioned.

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 67% and the schema already defines includeProgram and displaySavedChart, yet the description adds decision context the schema lacks: use includeProgram=true specifically for follow-up chart edits, and displaySavedChart returns the original saved result without recomputation. It also implicitly scopes analysisRunId to a completed run in the current conversation, which the schema only types as a UUID.

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 names a specific verb (read) and a specific resource set (durable datasets, stable semantic element IDs, view bindings from one completed analysis run in the current conversation). It also delimits the scope ('one completed analysis run', 'current conversation'), so an agent can distinguish it from resolve_analysis_reference or live_chart without opening a schema.

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?

It gives explicit sequencing ('Use this before resolving any chart-derived value or condition'), conditional parameter guidance ('For a follow-up chart edit, request includeProgram=true'), and names an alternative for a different job ('draw over time on the Spot Chart with live_chart'). It also advises reuse of calculation history versus fetching refreshed data. It stops short of stating when another artifact tool (e.g., a backtest/deployment artifact) is the better choice, so it lands at 4 rather than 5.

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.