Skip to main content
Glama
parallel-variable-mcp

parallel-variable-mcp

pv_run_simulation

Create and queue a parallel-variable digital resident simulation, return a pipeline ID and queue status, then query progress and feedback asynchronously.

Instructions

【重要:扣费操作,调用前必须先向用户展示本次推演的样本量(sample_size)、步进单位与步数(step_unit + observation_days)以及预估推演点数消耗,并获得用户明确确认后再调用!】创建平行变量数字居民推演流水线并立即提交排队启动(内部依次调用 POST /v1/pipelines 与 POST /v1/pipelines/{id}/launch),立即返回 pipeline_id 与排队信息,不会阻塞等待推演结束。启动后请使用 pv_get_simulation_results 查询实时进度与居民反馈结果。

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": {
      "description": "<description>",
      "region_code": "<region_code>",
      "sample_size": "<sample_size>",
      "observation_days": "<observation_days>"
    },
    "name": "pv_run_simulation"
  }
}

Input Schema

NameRequiredDescriptionDefault
genderNo
age_maxNo
age_minNo
step_unitNo推演步进单位:DAY(天)、WEEK(周)、MONTH(月)。
price_yuanNo可选,商业场景价格(元);非商业社会事件请勿传此字段。
descriptionYes完整的推演方案或事件描述。
region_codeYes目标区域编码(如 110105)。110105
sample_sizeYes目标抽样数字居民数量。
income_bandsNo
audience_tagsNo
education_levelsNo
marital_statusesNo
observation_daysYes推演总步数(1~31,配合 step_unit 表示天/周/月)。
observation_goalsNo可选,最多 8 条中文观测目标。
scenario_categoryNo可选,由 pv_clarify_scenario 返回的场景类型编码。
auto_confirm_insufficient_populationNo若命中人群少于 sample_size,是否自动按实际人数确认并继续启动(默认 false)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so well: it discloses that this is a billable/points-consuming operation, that it is asynchronous and returns immediately with pipeline_id and queue info rather than blocking, that two backend calls happen internally, and that population shortfall can be auto-confirmed via a parameter default.

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 bracketed billing/confirmation warning is correctly front-loaded, followed by what the tool does, its non-blocking return, and the next step. Every sentence serves a purpose, though the warning block is dense enough to read as a run-on.

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?

For a 16-parameter, expensive, asynchronous launch tool with no annotations and no output schema, the description covers the essentials: cost, confirmation gate, non-blocking behavior, returned pipeline_id, and where to check results. Gaps remain around failure modes and the semantics of the queue, but nothing critical to a correct first call is absent.

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

Parameters3/5

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

Schema coverage is only 56% across 16 parameters, so the description should compensate more than it does. It does highlight the cost-driving parameters (sample_size, step_unit, observation_days) and tie scenario_category to pv_clarify_scenario, but the demographic filters (gender, age bounds, income_bands, education_levels, marital_statuses, audience_tags) get no meaning beyond their enums.

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 compound verb and resource: create a digital-resident simulation pipeline and immediately submit it for queued launch, with the two underlying API calls named. It also distinguishes itself from pv_get_simulation_results by framing that sibling as the follow-up query rather than the launch action.

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 an explicit precondition for calling (show the user sample_size, step_unit + observation_days, and estimated point cost, then obtain explicit confirmation) and names the correct follow-up tool. What is missing is guidance on the lead-up steps, e.g. whether pv_clarify_scenario or pv_estimate_population should be run first, though scenario_category's schema text implies the former.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.