Skip to main content
Glama

subproject_add_repo

Add a repository as a subproject to analyze dependencies, discover services, parse API contracts, and link HTTP calls to endpoints within your project ecosystem.

Instructions

Add a repository as a subproject of the current project. A subproject is any working repository in your ecosystem: microservices, frontends, backends, shared libraries, CLI tools. Discovers services, parses API contracts (OpenAPI/gRPC/GraphQL), scans for HTTP client calls, and links them to known endpoints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYesAbsolute or relative path to the repository/service
nameNoDisplay name for the repo (default: directory basename)
projectNoProject root this subproject belongs to (default: current project)
contract_pathsNoExplicit contract file paths relative to repo root
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the tool's actions ('Discovers services, parses API contracts, scans for HTTP client calls, and links them to known endpoints'), which adds useful context beyond basic addition. However, it does not cover critical behavioral aspects like permissions needed, side effects (e.g., indexing or data changes), error handling, or response format, leaving gaps for a mutation tool.

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 front-loaded with the core purpose in the first sentence, followed by elaboration on subproject scope and actions. It uses two sentences efficiently, with no redundant information, though it could be slightly more concise by integrating the action details into the initial statement.

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?

Given no annotations and no output schema, the description provides a clear purpose and some behavioral context (e.g., discovery and parsing actions), but it lacks details on what the tool returns, error conditions, or integration with the broader system. For a mutation tool with 4 parameters, this is adequate but has notable gaps in completeness.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description does not add any parameter-specific details beyond what the schema provides (e.g., it mentions 'repository/service' but doesn't clarify 'repo_path' semantics further). Baseline 3 is appropriate as the schema handles parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Add a repository as a subproject') and resource ('current project'), distinguishing it from siblings like 'subproject_sync' or 'get_subproject_graph' by focusing on initial addition rather than synchronization or querying. It elaborates on what constitutes a subproject ('microservices, frontends, backends, shared libraries, CLI tools'), making the purpose explicit and differentiated.

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 description implies usage for adding repositories as subprojects in a project ecosystem, but does not explicitly state when to use this tool versus alternatives (e.g., 'subproject_sync' for updates or 'get_subproject_graph' for viewing). It provides context about what a subproject is, but lacks explicit guidance on prerequisites, exclusions, or comparisons with sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nikolai-vysotskyi/trace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server