Skip to main content
Glama
local-pc-mcp

local-pc-mcp

by contra333

Search text

file_search
Read-only

Searches a single local directory for literal text or matching filenames within the allowed read policy, returning bounded results.

Instructions

Bounded literal text or filename search in one directory under the local read policy.

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": {
      "path": "<path>",
      "query": "<query>"
    },
    "name": "file_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNocontent
pathYes
queryYes
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
modeYes
pathYes
queryYes
limitsYes
matchesYes
truncatedYes
scanned_filesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: results are 'bounded' (a result cap), matching is 'literal' rather than pattern-based, the scope is a single directory rather than recursive, and access is gated by the local read policy. It does not explain what happens when the policy blocks a path, but the added constraints are substantive.

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 dense sentence with the core action front-loaded and no filler. The trailing qualifier 'under the local read policy' is jargon-heavy but carries real information about access gating, so it earns its place.

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?

An output schema exists, so return-value behavior need not be described. However, with four undocumented parameters at 0% schema coverage, the undefined mode switch (content versus filename search) is a real gap that could cause an agent to search the wrong target silently.

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%, so all four parameters rely on the description for meaning, and it only partially compensates. 'One directory' maps to path and 'text or filename' loosely gestures at the mode parameter (content default), but mode, its accepted values, and max_results are never named or explained, leaving half the schema opaque.

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 gives a specific verb (search) over a specific resource (literal text or filename) and bounds it to one directory under the local read policy, so an agent knows exactly what the tool does. It does not explicitly contrast with siblings such as file_read or file_list, but the search semantics are distinctive enough that confusion is unlikely.

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 implied rather than stated: 'literal' signals no regex support, 'one directory' signals non-recursive scope, and 'under the local read policy' hints that access may be blocked. There is no explicit when-to-use-versus-alternative guidance (for example, when to search instead of reading a file directly), so the agent must infer the selection criteria.

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