Skip to main content
Glama
forest-USTC

FeatureLens Research

Official
by forest-USTC

research_read_source

Read-only

Reads a few source lines for a static clue after verifying the file hash, limiting access to unpacked directories already analyzed to prevent path escapes or changed files.

Instructions

读取静态线索对应的少量源码行,先核对文件哈希。仅支持本工具实际分析过的、用户指定的已解包目录,拒绝路径越界和文件变更。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextYes
node_idYes
study_idYes研究 ID,由 research_create 返回
analysis_idYes
observation_indexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds real behavioral context beyond that: hash verification before reading, restriction to previously analyzed unpacked directories, and explicit refusal of path escape and changed files. These are concrete safety and scope behaviors not encoded in the annotations.

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?

Two tight sentences, front-loaded with the core action (reading source lines) followed by the safety constraints. Little wasted text, though the parameter set is never addressed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Behavioral context (hash check, scope limits, rejection rules) is well covered, which is valuable for a no-output-schema tool, but with five required parameters at 20% schema coverage the definition leaves the agent guessing about how to supply valid inputs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20% (only study_id is documented), yet the description explains none of the five required parameters — node_id, analysis_id, observation_index, and context are left entirely undefined. For a five-parameter tool with poor schema coverage, the description does not compensate.

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 specific verb and resource: reading a small set of source lines for a static clue, with hash verification first. This is clearly distinguishable from siblings like research_document_chunks or research_find_nodes, though it does not explicitly name an alternative tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives meaningful preconditions — only directories this tool has already analyzed and that the user specified — and states that path traversal and file changes are rejected. However, it does not tell the agent when to prefer this over other read-style siblings, so usage is only implied.

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