Skip to main content
Glama

Discover Projects

discover_projects

Find local projects by scanning a directory to a chosen depth and optionally register them when explicitly requested.

Instructions

Discover local projects. Register only when explicitly requested.

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

Input Schema

NameRequiredDescriptionDefault
pathNo
registerNo
max_depthNo

Output Schema

NameRequiredDescriptionDefault
projectsYes
warningsNo
truncatedNo

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 are provided, so the description carries the full burden of behavioral disclosure. It reveals that registration is optional and should only happen when explicitly requested, but it does not describe side effects, permissions, scanning behavior, or what registration actually changes.

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?

The description is two short sentences with no filler, and the core purpose is front-loaded. Its brevity is appropriate structurally, though it leaves important parameter and behavioral details unstated.

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?

The tool has three parameters, no annotations, and 0% schema description coverage. Although an output schema exists, the description is too sparse to explain path, max_depth, or the consequences of registration, making it incomplete for correct invocation.

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 for all three parameters. It gives meaning to the register flag via "only when explicitly requested," but provides no information about path or max_depth, leaving two parameters undocumented.

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 states a specific verb and resource: "Discover local projects." It also clarifies that registration is conditional, which helps distinguish discovery from registration. However, it does not explicitly differentiate this tool from sibling tools such as list_projects or register_project.

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?

The phrase "Register only when explicitly requested" gives a clear usage constraint for the register option. It does not explain when to use this tool instead of list_projects or register_project, nor does it describe prerequisites for discovery.

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