Skip to main content
Glama
@memoryrelay/mcp-server

@memoryrelay/mcp-server

Official
by memoryrelay

project_shared_patterns

Identify patterns shared by two projects to find common conventions, duplicated decisions, and reusable practices across your codebase.

Instructions

What do two projects have in common? Returns patterns adopted by both projects.

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": {
      "project_a": "<project_a>",
      "project_b": "<project_b>"
    },
    "name": "project_shared_patterns"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_aYesFirst project slug
project_bYesSecond project slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the burden; it implies a read-only comparison query and says what is returned conceptually (patterns adopted by both). It does not disclose whether the result is symmetric in project_a/project_b, what happens when no patterns overlap, or any pagination/limit behavior.

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 sentences, front-loaded with the framing question followed by the concrete return statement. No filler, though the rhetorical question style is slightly less direct than a plain verb-first 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?

For a simple two-parameter read tool this covers the essentials, but with no annotations and no output schema, the description should say more about the shape of the returned patterns and edge cases like an empty intersection.

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 coverage is 100%, so both parameters (project_a, project_b as slugs) are already documented in the schema. The description confirms two projects are compared but adds no format or ordering semantics beyond that, so the baseline 3 applies.

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 names a specific operation: comparing two projects and returning the patterns both have adopted. An agent can distinguish this from sibling tools like project_related or project_context, though it does not explicitly name which sibling to prefer.

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?

Use is implied by the question 'What do two projects have in common?', but there is no explicit when-to-use/when-not-to-use guidance, no mention of alternatives such as project_related or entity_graph, and no stated preconditions like both projects needing to exist.

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