Skip to main content
Glama

analyze_gaps

Compare your current skills and profile against a target job description to identify gaps and guide next-step roadmap planning.

Instructions

对比现状(have)与目标(want/target_jd),输出差距分析。

返回方法论上下文。LLM 按照方法论指引,基于已抓取的真实数据 分析差距,然后调用 save_gap_analysis(gap_json) 保存结果。

前置条件:档案已通过 finalize_profile 确认。 后续步骤:LLM 分析后调用 save_gap_analysis,然后调用 generate_roadmap。

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": "analyze_gaps"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

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 it does disclose the key trait: this call is a read-only methodology fetch, while persistence happens separately through save_gap_analysis(gap_json). It also discloses the state prerequisite (finalized profile). It stops short of stating explicitly that this tool has no side effects or what the methodology payload looks like, though an output schema exists.

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?

It is short and front-loads the comparison, then separates prerequisites and next steps into labeled sections, which is easy to scan. There is minor redundancy in restating save_gap_analysis twice and in the overlapping opening lines about outputting the gap analysis.

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 zero-parameter tool with an existing output schema, the description covers the essential context: what it returns, that the LLM must perform the analysis itself on real fetched data, what must precede it, and what follows. The only gap is the slight ambiguity about where analysis responsibility ends and tool responsibility begins.

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?

The tool takes zero parameters, which is the baseline-4 case. The description correctly implies no input is required and that data comes from already-fetched real data rather than arguments, reinforcing the empty schema.

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 description names a specific operation (compare 'have' against 'want/target_jd' and produce a gap analysis) and clarifies an unusual division of labor: the tool returns methodology context rather than the analysis itself. It is distinguishable from save_gap_analysis and generate_roadmap, which it names. The first line ('输出差距分析') slightly overstates the tool's role versus the second line ('返回方法论上下文'), a minor tension that keeps it from a 5.

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 explicit workflow positioning: a precondition (profile confirmed via finalize_profile) and an ordered follow-up (call save_gap_analysis, then generate_roadmap). The sibling calls are named with their role in the sequence. What is missing is a negative condition — when not to use this tool or what to do if the profile is not finalized.

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