Skip to main content
Glama

collect_company_evidence

Collect job descriptions and interview reports for confirmed target companies, then generate an evidence-pool report with source status, confidence, and data gaps; resume batch runs until complete.

Instructions

采集目标企业的岗位 JD 与面经,生成 EvidenceRun 与证据池报告(阶段 7)。

何时调用:目标企业池已确认(select_target_companies)之后。 本工具只采集事实:抓取、城市硬筛、详情补抓、去重、来源状态与置信度; LLM 不参与,不编造缺失内容。单源失败不影响整批,失败原因写入 source_status 与 gaps。

分批续跑(默认开启):

  • 单次调用只处理 batch_size 家企业,每完成一家写入检查点;

  • 还有企业未完成时返回 status=partial,不会生成 EvidenceRun;

  • 再次调用本工具会自动从检查点续跑,直到全部完成才生成证据池。

BOSS 直聘纪律(include_boss=True 时):

  • BOSS 是跨公司补充源,只补充薪资与广度,不能替代目标企业池;

  • 抓取前只问一次是否把 BOSS 纳入采集,用户同意后传 boss_confirmed=true;

  • 未确认返回 CONFIRMATION_REQUIRED;确认但未登录返回 LOGIN_REQUIRED + next_tool=boss_login,直接调用 boss_login(action="login"),不再追问第二次;

  • 登录成功后窗口常驻、切成功页、不自动关闭;命令仅作兜底, 绝不把登录失败直接当抓取失败。

Args: company_pool_id: 目标企业池 artifact id;空串取当前档案最新且已确认的企业池 per_company_limit: 每家企业的 JD 抓取上限 max_companies: 本次最多抓取的企业数(BOSS 不占该名额) max_jd: 最终保留的 JD 上限 max_interviews: 最终保留的面经上限 refresh: true 时不复用 profile.research 中 7 天内的历史样本,也不复用检查点 include_boss: 是否把 BOSS 直聘作为补充证据源(默认关闭) boss_confirmed: 用户已确认抓取 BOSS 时为 true;未确认会返回 CONFIRMATION_REQUIRED company_ids: 只采集指定企业(逗号/顿号/空格分隔的 id 或名称);空串表示全部 batch_size: 单次调用最多处理的企业数(默认 3,范围 1-10) resume: 是否复用未完成检查点续跑(默认 true) include_outside_pool: 是否保留企业池外的复用样本(默认 false,直接丢弃)

Returns: JSON 字符串:artifact id、样本统计(含 BOSS 条数)、置信度、来源状态、 数据缺口、报告完整路径与下一步 analyze_company_requirements; status=partial 时返回检查点 id、本批进度与续跑指引。

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

Input Schema

NameRequiredDescriptionDefault
max_jdNo
resumeNo
refreshNo
batch_sizeNo
company_idsNo
include_bossNo
max_companiesNo
boss_confirmedNo
max_interviewsNo
company_pool_idNo
per_company_limitNo
include_outside_poolNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/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: it declares the tool is fact-only, that no LLM participates and missing content is not fabricated, that a single source failure does not abort the batch and reasons are recorded in source_status and gaps. It further discloses checkpoint/batch semantics (status=partial, no EvidenceRun until complete) and the BOSS login window behavior (persists, switches to success page, not auto-closed), which are non-obvious runtime traits.

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?

Long but well-structured with labeled sections (when to call, batching, BOSS discipline, Args, Returns), and the purpose is front-loaded. The Returns block largely restates information an existing output schema already provides, which is the main expendable content in an otherwise dense definition.

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 12-parameter tool with checkpointing, conditional auth flow, and an output schema, the description covers the operational essentials an agent needs to call it correctly and to react to partial/confirmation/login statuses. Small residual ambiguity remains around how the three limit parameters interact in practice.

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%, so the description must compensate, and the Args block documents all 12 parameters with meaning beyond type: the empty-string fallback for company_pool_id, that BOSS does not consume max_companies quota, refresh disabling both 7-day sample reuse and checkpoint reuse, batch_size default/range, and separator formats for company_ids. The only shortfall is that some defaults restated from the schema add little, and interplay between per_company_limit, max_jd, and max_interviews is described only loosely.

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?

States a specific verb+resource: collect job JDs and interview reports for target enterprises, producing an EvidenceRun and an evidence-pool report (phase 7). It explicitly positions itself relative to siblings by naming select_target_companies as the prerequisite and analyze_company_requirements as the next step, so an agent can distinguish it without inspecting schemas.

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?

Gives an explicit when-to-call condition ('after the target company pool is confirmed'), plus conditional routing for the BOSS source: unconfirmed returns CONFIRMATION_REQUIRED, confirmed-but-not-logged-in returns LOGIN_REQUIRED with next_tool=boss_login, and says not to ask a second time. It also defines when to set refresh vs resume and how batch continuation works, leaving little to inference.

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