Skip to main content
Glama

执行分析

jasp_run

Executes a confirmed analysis plan with the local JASP engine to generate reproducible statistical tables, plots, and .jasp files, returning a run ID for status polling and results retrieval.

Instructions

按已确认的计划调用本机 JASP 引擎执行分析,这是得出统计数字、表格、图和 .jasp 的唯一途径。宿主应展示本工具链返回的结果,不要自行计算或编造数值,也不要改用 Python 做旁路分析。返回 run_id,用 jasp_run_status 轮询,用 jasp_get_results 取结果。计划未确认时不要调用(除非用户明确要求 force=true)。若本机无 R/jaspTools,会进入 dry-run 并生成可复现请求,不会产生统计数字。

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": {
      "session_id": "<session_id>",
      "plan_id": "<plan_id>"
    },
    "name": "jasp_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNo随机种子,默认 1
forceNo计划未确认时是否强制运行
plan_idYes计划 ID
session_idYes会话 ID
timeout_msNo超时毫秒,默认 300000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it discloses the async pattern (returns run_id, poll with jasp_run_status), the dry-run fallback when R/jaspTools is absent with the explicit caveat that no statistics are produced, and the preconditions on plan confirmation. It does not cover concurrency, expected runtime, or what a dry-run response looks like, so it stops short of full transparency.

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 and exclusivity are front-loaded, then the workflow and constraints follow in a logical order. It is dense but every sentence carries a constraint or a routing instruction; the anti-fabrication instruction is slightly verbose but still earns its place as a correctness guard.

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 no-annotation, no-output-schema tool this is close to complete: it explains the return handle (run_id), how to obtain results, the dry-run degradation path, and the confirmation precondition. The main gap is the absence of any statement about side effects or the .jasp artifact location, which matters for a tool that writes files.

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 description coverage is 100%, so all five parameters are already documented. The description only adds contextual meaning to force (only valid when the user explicitly asks and the plan is unconfirmed) and echoes the timeout default already in the schema; seed, session_id, and plan_id get no extra explanation.

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 and resource (调用本机 JASP 引擎执行分析) and explicitly claims exclusivity: it is the only path to 统计数字、表格、图和 .jasp. This distinguishes it from siblings like jasp_plan_analysis and jasp_get_results without opening their schemas.

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?

Gives explicit when-to-use (confirmed plan), when-not (unconfirmed plan unless force=true), and names the follow-up tools by role: jasp_run_status for polling and jasp_get_results for retrieval. It also rules out bypasses (don't compute yourself, don't use Python), which is actionable routing guidance.

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