Skip to main content
Glama

analyze_company_requirements

Analyzes job descriptions and interview reports to compute requirement statistics, generate an interpretation prompt, and draft a company requirement profile for planning.

Instructions

企业需求分析:统计 JD 与面经的确定性数据,并返回 LLM 解读提示。

何时调用:collect_company_evidence 之后、plan_execution_alignment 之前。 evidence_run_id 为空时使用当前档案最新的 EvidenceRun。

产出:RequirementProfile 草稿(id 前缀 rp_)落库到 artifact store, 并更新档案 core_state。数字、公司覆盖、Wilson 区间与硬门槛均由代码计算; LLM 只能按 analysis_prompt 填写 interpretation。

Args: evidence_run_id: 目标 EvidenceRun id;空串取当前档案最新一次采集。

Returns: 统计摘要 + analysis_prompt + 下一步(save_requirement_profile)。

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_company_requirements"
  }
}

Input Schema

NameRequiredDescriptionDefault
evidence_run_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/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 here, and it discloses a lot: the tool writes a RequirementProfile draft to the artifact store and mutates the profile's core_state. It also clearly bounds what the LLM may do versus what code computes: the numbers, company coverage, Wilson intervals, and hard thresholds come from code, and the LLM fills only the interpretation. It does not cover overwrite or idempotency semantics or what happens when no EvidenceRun exists, which keeps this from a 5.

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?

The description is organized into labeled blocks (when to call, outputs, Args, Returns) and front-loads the purpose and the call-order constraint. The empty-string default is stated twice, once in the usage block and again in Args, which is minor redundancy. Otherwise, the text is dense and free of 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?

A rich output schema exists, so return values need not be fully explained, yet the description still summarizes them and even names the logical next step (save_requirement_profile), which helps chaining. With one optional parameter, no annotations, and a mutating side effect, the key behaviors are covered. Missing is the failure or edge case where no evidence has been collected yet.

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 0%, so the description must explain the single parameter, and it does: evidence_run_id is the target EvidenceRun id, and an empty string selects the profile's latest collection. That empty-string fallback is a real behavioral detail about the parameter that the schema does not provide. The description does not describe the format or provenance of the id itself, which is a minor gap.

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 gives a specific verb and resource: it computes deterministic statistics over JDs and interview reports and returns an LLM interpretation prompt. It also names the concrete artifacts produced (a RequirementProfile draft with the rp_ prefix, plus an update to core_state), which lets an agent distinguish it from neighbors such as collect_company_evidence or plan_execution_alignment.

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 explicitly states when to call (after collect_company_evidence, before plan_execution_alignment) and names both neighboring tools. It also states the default behavior when evidence_run_id is empty, so there is little room for an ordering or input mistake.

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