Skip to main content
Glama

aft_glob

List files matching a glob pattern using the AFT index. Specify a pattern and optional path to locate files in a project without scanning the filesystem.

Instructions

AFT indexed glob (read-only). List files matching a glob pattern.

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": {
      "pattern": "<pattern>"
    },
    "name": "aft_glob"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
patternYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses that results come from an index and that the operation is read-only, but says nothing about index staleness versus the live filesystem, result ordering, truncation/limits, or whether the index must be built first (aft_status hints such a lifecycle exists).

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 short sentences with zero filler, and the most important fact (what it lists) is front-loaded. It is efficient, though the second sentence is nearly a restatement of the first's resource.

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?

For a two-parameter tool with no annotations, no output schema, and zero schema descriptions, the definition leaves too much unexplained: `path` semantics, glob syntax, index freshness, and result shape are all unaddressed. An agent can guess at invocation but cannot predict behavior confidently.

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 the description must compensate and it does not. "Glob pattern" loosely covers the required `pattern`, but the `path` parameter is never mentioned and it is unclear whether it is a base directory, a scope filter, or optional with a project-root default.

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?

"List files matching a glob pattern" states a specific verb (list) and resource (files), and "AFT indexed" distinguishes it from a content-search sibling like aft_grep. It stops short of naming alternatives explicitly, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no reference to alternatives such as aft_grep or aft_search. The parenthetical "read-only" implies a safe lookup, but nothing tells an agent when globbing beats content search or what prerequisites exist.

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