Skip to main content
Glama

Algo Trade Analytics

analyze_parameter_robustness

analyze_parameter_robustness
Read-onlyIdempotent

Summarize parameter-sweep stability for a required experiment protocolId and flag single-point overfit risk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
symbolYes
endDateYes
strategyNo
maxTrialsNo
startDateYes
timeframeYes
protocolIdYesExperiment protocol id returned by define_experiment_protocol for this exact bounded experiment.
caseStudyIdNoOptional: bind this call to one of your case studies. Defaults to the bound run's case study.
constraintsNo
parameterKeysNo
researchRunIdNoOptional: bind this call to one of your existing research runs. Defaults to this session's most recent unfinished run.
baselineInputsNoOptional input overrides as a JSON-stringified object, e.g. '{"SMA Length":14}'. Keys are Pine input names; values are number, string, or boolean.
evaluationModeNo
trainTestSplitNo
objectiveMetricNo
mcpIdempotencyKeyNoUnique key for this logical action. Reuse it only when retrying the same arguments. Required for hosted trust-creating actions when no idempotency header is supplied.
scoreTolerancePctNo
objectiveDirectionNo
parameterOverridesNo
walkForwardTopTrialsNo
walkForwardWindowCountNo
walkForwardBaselineInputsNoOptional input overrides as a JSON-stringified object, e.g. '{"SMA Length":14}'. Keys are Pine input names; values are number, string, or boolean.
walkForwardBaselineSourceNo
walkForwardMinBarsPerWindowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, so the description does not need to restate safety. It adds output behavior by saying it 'flag[s] single-point overfit risk' and ties the analysis to a specific protocolId. It does not disclose return shape or stability criteria, but the annotations cover the safety profile and the description gives a reasonable behavioral summary.

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?

A single sentence, front-loaded with the verb and object and no filler. It could carry more detail, but it is efficiently structured.

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

Completeness2/5

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

Given the tool's complexity (25 parameters, no output schema, low schema coverage), a one-line summary is not enough for an agent to know expected return values, what 'stability' means, how overfit risk is determined, or what prior workflow steps are required. The description would need at least prerequisites, output semantics, and guidance across the analysis siblings to be complete.

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 only 24%, so the prose needs to compensate for 25 parameters; the only parameter it calls out is protocolId, and it merely labels it 'required' without adding semantics beyond the schema's own protocolId description. Required params like symbol, timeframe, startDate, endDate, and source are left entirely to the schema, so the description adds little to parameter understanding.

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?

The description uses the specific action 'Summarize' with a clear resource ('parameter-sweep stability') and names the required protocolId input. It is clear enough to differentiate from running a sweep, but it never refers to sibling analysis tools such as analyze_overfit_probability or analyze_bootstrap_confidence, so sibling differentiation is only implicit.

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?

The description implies the tool is used when a protocolId exists and the user wants a stability/overfit summary, but it gives no explicit when-to-use guidance, prerequisites (e.g., run_parameter_sweep must have completed), or exclusions. No alternative tools are mentioned, so an agent would have to infer when this is preferable to analyze_overfit_probability or stress_test_candidate.

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.

Resources