Skip to main content
Glama

Start Simulation

lexq_simulation_start

Start an Impact Simulation against historical, uploaded, or inline data.

dataset.type and dataset.source are BOTH required, and must be paired: HISTORICAL → source EXECUTION_LOGS, with dataset.from / dataset.to (yyyy-MM-dd, whole days in the organization time zone, both inclusive) UPLOADED → source S3_BUCKET, with dataset.path (the path returned by lexq_dataset_upload) MANUAL → source REQUEST_BODY, with dataset.manualData (array of fact records)

options.maxRecords: number (max 100000). When omitted, HISTORICAL and UPLOADED run at most 1000 records and MANUAL runs every record sent. options.baselinePolicyVersionId: uuid (optional, for baseline comparison) options.includeRuleStats: boolean options.metricConfig: optional — omit for plain execution count. To aggregate a fact, pass { "targetVariable": "", "aggregationType": "COUNT" | "SUM" | "AVG" }

Example (uploaded dataset): { "policyVersionId": "", "dataset": { "type": "UPLOADED", "source": "S3_BUCKET", "path": "" }, "options": { "baselinePolicyVersionId": "", "includeRuleStats": true, "maxRecords": 10000 } }

Example (historical): { "policyVersionId": "", "dataset": { "type": "HISTORICAL", "source": "EXECUTION_LOGS", "from": "2026-01-01", "to": "2026-01-31" }, "options": { "baselinePolicyVersionId": "", "includeRuleStats": true } }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesJSON string of SimulationRequest

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is covered. The description adds real behavioral value by disclosing the default record caps (1000 for HISTORICAL/UPLOADED, unbounded for MANUAL) and the strict type/source pairing constraint, but it never says the run is asynchronous or that a job id must be polled via lexq_simulation_status — a significant omission given the surrounding sibling set.

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?

Purpose is front-loaded, then the mode table and option semantics follow in a scannable structure. The two worked examples are genuinely useful for a JSON-string body parameter, though they restate information already given in prose and add length.

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?

No output schema exists, and the description never states what a successful call returns (simulation/job id, immediate vs. eventual results) or how to follow up. Everything needed to construct the request is present, but the agent is left to infer the response contract from sibling names.

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

Parameters5/5

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

The schema's only parameter is a tautological 'JSON string of SimulationRequest', so the description carries the entire semantic load and does it well: it enumerates dataset.type/source pairs, the from/to date format and inclusivity, path provenance, manualData shape, and every options field including the metricConfig aggregation object.

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?

States a specific verb+resource ('Start an Impact Simulation') plus the three data-source modes it accepts. Easily distinguished from siblings like lexq_simulation_status, lexq_simulation_list, lexq_simulation_cancel and lexq_simulation_export, which operate on an already-created simulation.

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?

Gives explicit conditional routing between the three dataset modes (HISTORICAL→EXECUTION_LOGS, UPLOADED→S3_BUCKET, MANUAL→REQUEST_BODY) and points at lexq_dataset_upload as the prerequisite for the uploaded path. It stops short of saying when to prefer this over lexq_dry_run, lexq_dry_run_compare, or lexq_replay_start, which is the remaining gap.

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.