Skip to main content
Glama

get_project_patterns

Extract common architecture, coding patterns, and conventions from a codebase to understand project structure and align new code with existing practices.

Instructions

Extract common patterns, architectures, and conventions from the codebase

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

Input Schema

NameRequiredDescriptionDefault
analysisTypeNoType of pattern analysis to performall

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 disclosure burden. It implies a read/extraction operation but never states scope (whole repo, workspace, or current file), whether the analysis is expensive or slow, or whether results are cached — all material for an analysis 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?

One short, front-loaded sentence with zero waste. It is efficient, but the terseness is part of why behavioral and usage details are absent.

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?

No output schema and no annotations, so the description should explain return shape and scope for an analysis tool; it does neither. An agent cannot predict whether it receives file lists, prose summaries, or structured findings.

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% and the single enum parameter is self-documenting, so baseline is 3. The description's mention of patterns/architectures/conventions loosely mirrors the enum values but adds no format, default, or interaction details beyond the schema.

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?

States a specific verb ('Extract') and a specific resource ('common patterns, architectures, and conventions from the codebase'). An agent can tell this apart from get_file_dependencies or search_codebase, though it never explicitly contrasts with the closer sibling analyze_workspace.

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?

No when-to-use, when-not-to-use, or prerequisite guidance is given. With siblings like analyze_workspace and get_context_summary that plausibly overlap, the agent is left to infer selection criteria entirely on its own.

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