Skip to main content
Glama

source_dig

Scans local files for keyword matches and returns file paths, sizes, and hit terms—not full text—so you can find relevant study materials while keeping content private.

Instructions

扫本地语料,列出与关键词相关的材料(只回路径/大小/命中词,不回原文)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>",
      "root": "<root>",
      "keywords": "<keywords>"
    },
    "name": "source_dig"
  }
}

Input Schema

NameRequiredDescriptionDefault
extsNo
rootYes
limitNo
keywordsYes
max_filesNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the key behavioral trait that only paths, sizes and hit words come back (no raw content), but says nothing about read-only safety, scan cost/latency over a local corpus, the caps enforced by limit/max_files, or what the required session_id context does.

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?

A single compact sentence with the action and the return contract front-loaded and no filler. It is efficient, though the parenthetical output note could be structured more clearly and there is no sentence-level framing of prerequisites.

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

Completeness2/5

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

This is a six-parameter filtering tool with no annotations, no output schema and no schema descriptions, so the definition has to do heavy lifting. It partially covers the return shape but leaves four parameters, the meaning of session_id, and any constraint or failure behavior undocumented.

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 0% across six parameters, including the required session_id and root. The description only gestures at keywords and the local corpus root; exts, limit, max_files and session_id receive no meaning beyond their property names, so the description fails to compensate for the schema gap.

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 pairs a specific verb ("扫", scan) with a specific resource ("本地语料", local corpus) and states the result shape: material list rather than content. It implicitly separates itself from content-reading siblings like evidence_read by saying no original text is returned, though it names no alternatives explicitly.

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?

Usage is only implied by the parenthetical: call this when you want to locate relevant material without paying the cost of reading full text. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer routing from sibling names alone.

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