Skip to main content
Glama

确认分析计划

jasp_confirm_plan

Locks a reviewed analysis plan after user confirmation, making it ready for execution. Resolve open plan issues first or set allow_incomplete to proceed with explicit user consent.

Instructions

在用户核对插件提出的计划(含建议题项与因子结构)之后锁定该计划,随后才能调用 jasp_run。未解决的问题需要先 jasp_update_plan 补全,或在用户明确同意时使用 allow_incomplete=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_confirm_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYes计划 ID
session_idYes会话 ID
allow_incompleteNo计划仍有问题时是否强制确认

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/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 behavioral burden and does most of it: it reveals this is a gating, state-locking step that must precede jasp_run, and that it does not itself execute the analysis. The consent requirement for allow_incomplete is spelled out, but it is silent on whether confirmation is idempotent or reversible and what a successful lock returns.

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?

Three short sentences, front-loaded with the action and its precondition, followed by the exception path and a closing prohibition. No filler or repetition of the schema.

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 three-parameter state-mutating gate with no annotations and no output schema, the description supplies the workflow position, the preconditions, and the escape hatch, which is what an agent needs to call it correctly. The only omission is what confirmation returns or how failures surface, which is a minor gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: allow_incomplete is framed as requiring explicit user consent and only as a fallback after jasp_update_plan has been considered. plan_id and session_id gain no extra explanation, but the risky optional flag is properly contextualized.

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?

Uses a specific verb (锁定/确认 the plan) plus the resource and scope: it locks the plugin-proposed plan, including suggested items and factor structure. It explicitly distinguishes itself from jasp_run (the downstream consumer) and jasp_update_plan (the repair path), so an agent can place it in the workflow without opening any schema.

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 (after the user has verified the plan), when-not (never before user confirmation), and the two named alternatives: call jasp_update_plan to resolve open issues, or set allow_incomplete=true when the user has explicitly agreed. The dependency ordering with jasp_run is stated outright.

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