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) 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, default 10000) 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. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, signaling a non-read-only mutation that is not destructive. The description confirms this by stating it 'starts' a simulation but does not disclose behavioral consequences such as execution time, whether it returns a simulation ID, or if it triggers an asynchronous process. With annotations covering the basic safety profile, the description adds value by detailing input requirements but stops short of describing the operational outcome. No contradiction with annotations.

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 description is lengthy but well-structured, with clear bullet points and two full examples. It front-loads the core purpose, then systematically explains the dataset pairings and options. While every sentence adds necessary detail, the length is justified given the complexity; it could be slightly tightened but remains efficient and easy to parse.

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?

The description comprehensively covers all input requirements, including every dataset type, required pairings, and all option fields, with examples. It lacks any description of the return value or output format, which would be expected given there is no output schema. However, for a tool that initiates an action, the input guidance is thorough enough to allow correct invocation. The missing output info is a minor gap.

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 input schema only defines a single 'body' string with a generic 'JSON string of SimulationRequest' description, providing no structural detail. The description compensates fully by detailing the required fields (dataset.type, dataset.source, and their pairings), optional options (maxRecords, baselinePolicyVersionId, includeRuleStats, metricConfig), and even provides concrete JSON examples. This adds substantial meaning beyond the schema and ensures the agent knows exactly how to construct the request.

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 clearly states the tool's action: 'Start an Impact Simulation against historical, uploaded, or inline data.' It specifies the resource (simulation) and the data sources, distinguishing it from sibling simulation tools like lexq_simulation_cancel or lexq_simulation_status. The purpose is unambiguous and action-oriented.

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?

The description provides explicit guidance on when to use each dataset type (HISTORICAL, UPLOADED, MANUAL) with required pairings, and includes detailed examples for uploaded and historical scenarios. It also explains optional parameters like baselinePolicyVersionId and metricConfig, leaving no ambiguity about how to structure a valid request. While it doesn't name alternative tools for other actions, it fully covers the usage context for this specific start operation.

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