Skip to main content
Glama

修改分析计划

jasp_update_plan

Modify a proposed analysis plan in place—adjust items, variables, factors, methods, or options—to reflect user feedback or complete model paths, then confirm only if no unresolved issues remain.

Instructions

对插件已提出的计划做增量修改(题项、因子结构、方法、选项)。适用于用户不接受某条建议、或要补全模型路径的情况。修改后默认仍为待确认;加上 confirm=true 且没有未解问题时可直接确认。不要跳过确认去执行,也不要在宿主侧自行改算。

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_update_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo修改后是否直接确认
optionsNo要覆盖的 JASP 选项
plan_idYes计划 ID
analysisNo
utteranceNo更新用户原话,用于重新识别相关类型等
variablesNo要覆盖的角色映射
session_idYes会话 ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does notable work: it discloses that the plan stays pending confirmation by default, that confirm=true plus no unresolved issues confirms immediately, and that execution must not bypass confirmation. It does not say what happens to fields omitted from the update (preserved vs cleared) or what the call returns, which matters for a mutation with nested override objects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with purpose, then applicability, then state behavior, then guardrails. No sentence is redundant and the confirmation caveat is packed tightly rather than restated.

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 7-parameter mutation tool with no annotations and no output schema, the description covers purpose, trigger conditions, resulting plan state, and the confirmation gate. Remaining gaps are return shape and override-vs-merge behavior for the nested `options` and `variables` objects.

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 86%, so the schema already documents all seven parameters, which sets the baseline at 3. The description adds real meaning for `confirm` (the confirmation only takes effect when no unresolved issues remain) and conceptually maps items/factor structure to `variables` and methods/options to `analysis`/`options`, but adds no format or merge semantics for those objects.

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 states a specific verb and scope: incremental modification of a plan the plugin has already proposed, covering items, factor structure, methods and options. The word 'incremental' plus '已提出的计划' separates it from plan creation (jasp_plan_analysis) and from plain confirmation (jasp_confirm_plan) without needing to open the schema.

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?

It gives clear triggering conditions — the user rejects a suggestion, or the model path needs completing — and adds when-not guidance ('不要跳过确认去执行', '不要在宿主侧自行改算'). It stops short of naming the sibling to use instead (e.g. jasp_confirm_plan) when the user actually just wants to approve an unmodified plan.

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