Skip to main content
Glama

生成分析计划

jasp_plan_analysis

Generates a confirmable analysis plan from loaded data, suggesting variables, factor structure, method, and key options for user review and confirmation; it does not run analyses.

Instructions

由插件根据已加载数据生成可确认的分析计划(建议题项、因子结构、方法与关键选项)。这是分析方案的权威来源:宿主只需把计划展示给用户,不要自行计算、下结论或改用 Python 做旁路分析。用户未指定题项或因子时,插件会检查变量名、前缀和类型并给出建议;建议必须标明为建议,不是已确认的事实。状态为 proposed 时请展示计划并等待用户确认,不要自动执行。确认请用 jasp_confirm_plan,修改请用 jasp_update_plan。本工具不执行分析。

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>",
      "utterance": "<utterance>"
    },
    "name": "jasp_plan_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNo覆盖默认 JASP 选项(高级用法)
analysisNo显式指定方法;不传则按关键词自动识别
utteranceYes用户原话,例如「比较男女在抑郁得分上的差异」
variablesNo变量角色映射,例如 {"dependent":["perf"],"group":["gender"]}
session_idYes会话 ID

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?

No annotations exist, so the description carries the full load, and it does well: it declares the tool never executes analyses, that it inspects variable names, prefixes and types when the user omits variables or factors, that suggestions must be labeled as suggestions rather than facts, and that a 'proposed' status means it should not be auto-run. What is left unsaid is the shape and contents of the returned plan object and handoff for the confirm path, which keeps it short of a 5.

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?

Front-loaded with the core action, then the authority constraint, then the routing, then the negative execution clause. A few clauses restate the same idea (the tool does not execute, do not compute yourself, do not bypass with Python), which is mild redundancy rather than padding, but it could be tightened.

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 5-parameter planning tool with nested objects and no output schema, the definition covers what the tool does, what it refuses to do, what status values imply, and which tools continue the workflow — enough for correct invocation. The remaining gap is that return value structure and how user-side confirmation feeds back into a subsequent call is left implicit.

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% and every parameter (session_id, utterance, analysis, variables, options) is documented inline, including the enum and nested variable-role map, so the schema does the heavy lifting. The description adds only indirect meaning — that omitted variables or factors trigger plugin suggestions — and says nothing about how the options override or the analysis enum selections behave.

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 (generate a confirmable analysis plan from already-loaded data) and enumerates what the plan contains: suggested variables, factor structure, method and key options. It also distinguishes itself from the nearby tools by naming jasp_confirm_plan and jasp_update_plan as the routes for other actions.

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 routing: confirm with jasp_confirm_plan, modify with jasp_update_plan, and if status is 'proposed', show the plan and wait for the user instead of executing. It also states the negative case plainly — do not compute conclusions yourself, do not run a Python workaround.

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