Skip to main content
Glama

trigger_insight

Generate an analysis prompt after a stage audit or reported job-search event to structure progress analysis and produce actionable career insights.

Instructions

触发洞察检查。

何时调用:

  • 用户完成阶段后(trigger_type="stage_audit")

  • 用户报告事件时(trigger_type="event",如拿到面试、目标变更)

工作流程:

  1. 调用 trigger_insight 获取分析 prompt

  2. LLM 根据 prompt 分析用户进度

  3. LLM 生成洞察 JSON

  4. 调用 apply_insight(insight_json) 应用结果

Args: trigger_type: 触发类型(stage_audit / event) event_description: 事件描述(当 trigger_type 为 event 时必填)

Returns: 包含分析 prompt 和使用说明的字典

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "trigger_insight"
  }
}

Input Schema

NameRequiredDescriptionDefault
trigger_typeNostage_audit
event_descriptionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

No annotations are supplied, so the description carries the full burden, and it does disclose that the call returns a prompt rather than performing the analysis itself, plus the required hand-off to apply_insight. It does not state whether triggering has any side effects on stored state or whether repeat calls are idempotent, which is the main remaining gap for a tool with no annotation coverage.

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?

Front-loaded with a one-line purpose, then labeled when-to-call and workflow sections, then Args/Returns. Every line adds information an agent needs to sequence the two-tool flow; nothing is filler.

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?

With an output schema present and only two flat parameters, the description is more than sufficient on structure and sequencing. The only omission is behavioral: side effects and idempotency of the trigger are unstated, which matters because no annotations exist to cover that ground.

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 description coverage is 0%, and the schema has no enums and marks nothing required, so the description is the only source of parameter meaning. It supplies the two valid trigger_type values and the conditional requirement that event_description be filled when trigger_type is "event" — critical since the schema declares zero required params. It stops short of describing expected length/format for event_description or the default behavior when omitted.

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+resource (trigger an insight check) and immediately clarifies what the tool actually produces: an analysis prompt for the LLM. The four-step workflow makes the division of labor with the sibling apply_insight unambiguous, so an agent can tell the two apart without opening either 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?

It names two explicit trigger conditions with the exact parameter value that selects each: stage completion (trigger_type="stage_audit") and user-reported events such as landing an interview or a goal change (trigger_type="event"). The follow-on step is also prescribed, so there is no ambiguity about what to do next.

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