Skip to main content
Glama

用 JASP 模板生成报告

jasp_run_template

Run an existing .jasp template through local JASP report mode to export a PDF report, HTML dashboard, and JSON results for repeatable analysis reviews and reporting.

Instructions

用已有 .jasp 模板调用本机 JASP 的 --report 模式,导出 report.pdf、HTML dashboard 与结果 JSON。适合固定分析流程的复核与出报告。

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": {
      "template_path": "<template_path>"
    },
    "name": "jasp_run_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
hideNo是否传 --hide(0.99.10 上可能导致崩溃,默认 false)
data_dirNo兼容参数:JASP 0.99.x 的 CLI 尚不支持替换数据目录
output_dirNo结果输出目录
timeout_msNo超时毫秒,默认 600000
template_pathYes已有 .jasp 模板路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the execution mode (local JASP --report) and the output artifacts, which is real behavioral information. It omits key traits: whether this is a long blocking call (the 600000ms default timeout implies yes, but the description never says so), whether output_dir contents are overwritten, and what happens on failure.

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?

Two tight sentences, front-loaded with the mechanism and then the outputs, with no filler. Slightly more could be said without bloat, but nothing present is wasted.

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?

With no output schema, the description usefully names the three returned artifacts, which is the right compensation. However, for a five-parameter tool that shells out to a local JASP install with a ten-minute default timeout, it should also state that the call blocks until completion and how output_dir is treated on repeat runs.

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 every parameter is already documented in the schema, including the hide crash warning and the data_dir compatibility caveat. The description adds no syntax, format, or default information beyond that, so the baseline 3 applies.

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 names a specific verb and resource: it invokes the local JASP binary in --report mode against an existing .jasp template, and it enumerates the three artifacts produced (report.pdf, HTML dashboard, result JSON). This distinguishes it functionally from a data-driven run tool such as jasp_run, though it never names that sibling explicitly.

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 closing sentence gives a use case: re-checking a fixed analysis pipeline and producing reports. That implies the context in which this tool fits, but no when-not conditions, no prerequisites (e.g. a template must already exist and JASP must be installed locally), and no named alternatives such as jasp_run or jasp_export for other paths.

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