Skip to main content
Glama

apply_insight

Applies LLM-generated career insight analysis to a user's profile, updating progress status, summary, and roadmap adjustments after an insight trigger.

Instructions

应用洞察分析结果到档案。

何时调用:在 trigger_insight 之后,LLM 分析完成后调用。

Args: insight_json: LLM 返回的洞察分析 JSON

Schema: { "trigger_type": "stage_audit", // 回传触发类型:stage_audit/event "status": "on_track", // 状态:on_track/behind/ahead/need_adjustment "summary": "进度正常", // 进度总结 "insights": [ // 洞察列表 "学习速度超预期", "可以加深难度" ], "adjustment_needed": false, // 是否需要调整 "adjustment_type": "auto", // 调整类型:auto/manual "adjustment_reason": "", // 调整原因 "changes": [ // 调整列表(产品不规划时间,无压缩时长类调整) { "type": "add_task", // 类型:add_task/remove_task/modify_task "task_id": "task_001", // 任务 ID(add_task 时省略) "details": { // 详情 "name": "新任务名" } } ], "user_message": "给用户的消息" }

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": {
      "insight_json": "<insight_json>"
    },
    "name": "apply_insight"
  }
}

Input Schema

NameRequiredDescriptionDefault
insight_jsonYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations at all, the description bears the full behavioral burden. It does disclose a real constraint ('产品不规划时间,无压缩时长类调整' — no time-compression adjustments are allowed) and enumerates the mutation types that can be applied (add_task/remove_task/modify_task). However it never says whether changes are applied immediately or require confirmation, whether repeated calls are idempotent, what permissions are needed, or what happens on partial failure — significant gaps for a write 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?

Front-loaded with purpose and when-to-call, then args, then the payload schema — a sensible order. The block is long, but nearly all the length is load-bearing field documentation that exists nowhere else; only minor redundancy between the Args line and the Schema header.

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 needn't be explained, and the single string parameter's nested contract is fully specified. What remains missing for a mutation tool of this complexity is error/duplicate-handling behavior and whether applied changes are reversible or auto-applied.

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% for insight_json, so the description must carry the contract — and it does, spelling out every inner field (trigger_type, status, summary, insights, adjustment_needed, adjustment_type, adjustment_reason, changes, user_message) with allowed values and conditional rules such as omitting task_id for add_task. This is exactly the compensation the low-coverage case calls for.

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?

States a concrete verb and resource: '应用洞察分析结果到档案' (apply the insight analysis result to the profile). It also places the tool in a workflow by naming its predecessor trigger_insight, so an agent can separate it from the trigger/analysis step. What 'applying' actually does (mutating tasks via add_task/remove_task/modify_task) only becomes clear from the embedded payload schema, not from the lead sentence.

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?

'何时调用:在 trigger_insight 之后,LLM 分析完成后调用' gives an explicit prerequisite and ordering relative to a named sibling. There is no when-not guidance (e.g. what to do if the analysis JSON is malformed or if a previous apply already succeeded), but the ordering rule is unambiguous.

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