Skip to main content
Glama

save_roadmap

Save a phased career roadmap to the user’s archive with structural validation and persisted, non-blocking quality advisories for later review.

Instructions

保存路线图到档案(只校验结构;质量项以建议形式返回,不阻断保存)。

质量判断交给 LLM、审计员与用户:层级跨度、KPI、届别、可执行性等 以 advisories 返回并持久化,不再拒绝保存;force 参数仅为兼容保留。

Args: roadmap_json: 路线图的 JSON 字符串 force: 已废弃,保留兼容(不再影响保存)

Schema(与 sop/roadmap.yaml 一致): { "strategy_summary": "整体策略说明", "start_level": "小厂", // 可选:本次路线图使用的起点档位 "phases": [ // 阶段列表 { "type": "learn", // learn/project/intern/research "name": "基础学习", // 阶段名称 "goal": "掌握基础", // 阶段目标 "kpi": {"metric": "...", "target": "...", "evidence": "..."}, "resume_value": "", // project/intern/research 必填 "target_level": "中厂", // 本阶段目标层级(大厂/中厂/小厂/暂不可入),投递实习阶段必填 "access_paths": [ // intern/校招阶段必填:至少两条主通道 {"channel": "暑期实习", "rationale": "...", "evidence_ids": ["cl_001"]} ], "fallback_paths": [ // intern/校招阶段必填:至少一条保底 {"channel": "中厂正式批", "rationale": "..."} ], "conversion_risk": { // 涉及转正必填:转正不是承诺 "level": "高", "reason": "HC 受部门影响", "evidence_ids": ["cl_002"] }, "time_window": { // intern/校招阶段必填:外部时间约束 "window": "秋招提前批 7-8 月", "deadline": "2027-08-31", "note": "" }, "decision_gate": { // 触发条件与换道动作 "condition": "暑期实习未拿到 offer", "action": "转提前批 + 中厂保底" }, "claims": ["cl_001"], // 只能引用已 record_claim 的结论 id "start_level_after": "", // 可选:复评升级后的起点档位(如 learn 阶段复评达标,后续阶段起点升为中厂) "graduation_year": "", // 可选:该阶段面向的毕业届(校招/实习阶段建议标注) "condition": "", // 可选:分支/备用路径说明(如「复评不达标则延长本阶段,改投中厂」) "company": "XX公司", // 目标公司名(公开常识,可直接写) "rationale": "对双非友好", // 推荐理由 "jd": null, // 具体 JD 细节——有真实数据(抓取/导入)才填 "jd_status": "not_required", // has_jd / pending_user_import / not_required "confirmed": false, // 用户已确认「先占位后补JD」 "milestones": [ // 里程碑列表 { "name": "Python 基础", // 里程碑名称 "done_criteria": "能独立写出...", // 完成标准 "deliverable": "", // 交付物 "tasks": [ // 任务列表 { "name": "学习装饰器", // 任务名称 "description": "...", // 可选 "priority": "high" // 可选 } ] } ] } ] }

注意:

  • 阶段数由差距与目标决定(通常 3-6 段),不要求固定 4 段。

  • 产品不规划学习时长:任务名建议不带时间节奏词(每周/每天等); 但 time_window 与实习时长是外部约束(校招时间点、岗位要求),应当填写。

  • 证据纪律:带数字的结论必须有 claim 或真实样本支撑;从业者经验先 record_claim, 并在阶段 claims 中引用。单通道、无保底、转正未标风险、引用缺失都会进建议清单。

  • 知识光谱纪律:公司名是常识可自由写;JD 细节必须有真实数据,拿不到就 jd 置空 + jd_status=pending_user_import(占位),并说明后续自动抓取会由企业适配阶段按目标企业与你的届别补齐, 也可先用 import_jd 补充;用户确认后 confirmed 置 true。

  • 层级是命中率参考,不是准入许可:跨级会给出建议,由 LLM 结合证据(作品集/内推/前序交付) 与用户判断,不禁止投递;start_level_after 只影响后续阶段的建议,不写回差距分析。

  • 返回值的 advisories 会持久化到档案,请在向用户交付时如实复述未解决项。

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": {
      "roadmap_json": "<roadmap_json>"
    },
    "name": "save_roadmap"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
roadmap_jsonYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/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 so well: it discloses that validation is structural only, that quality problems are returned as persisted advisories rather than rejections, that force is deprecated and inert, and that advisories must be relayed to the user. It stops short of stating overwrite/replace semantics for an existing saved roadmap, which is the main behavioral gap for a persistence tool.

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 behavior are front-loaded in the first two lines, and the embedded schema earns its length because the parameter is a complex JSON string with no schema coverage. There is some redundancy — the deprecation of force is stated twice and the non-blocking-save point is repeated in the closing notes — which costs a little tightness.

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?

An output schema exists, so return values need not be explained, and the description still flags that advisories are persisted and must be surfaced to the user. Given a 2-parameter tool with a deeply nested payload and no annotations, the main remaining omission is what happens to a previously saved roadmap when this is called again.

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

Parameters5/5

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

Schema description coverage is 0%, but the description fully compensates: roadmap_json is declared to be a JSON string and its entire nested contract (phases, kpi, access_paths, fallback_paths, conversion_risk, time_window, decision_gate, claims, jd_status, milestones, tasks) is documented with per-field meaning and conditionality. force is explicitly described as deprecated and non-functional, which the bare schema default of false does not convey.

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 opening line gives a specific verb and resource (保存路线图到档案) plus its defining scope: structural validation only, quality issues returned as non-blocking advisories. It implicitly separates itself from generate_roadmap (produces) and save_roadmap_audit (persists audit), though it never names a sibling to make the contrast explicit.

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?

Usage is implied rather than stated: the tool persists a roadmap and returns advisories, and import_jd is named as the way to backfill missing JD data. There is no explicit 'call this after generate_roadmap' or 'do not call this when...' guidance, so the agent must infer the placement in the workflow.

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