Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

semantic_search

Read-onlyIdempotent

Search code by concept rather than exact text to find authentication logic or error handling without knowing specific strings. Uses TF-IDF with synonym expansion for natural language queries.

Instructions

Search code by concept, not just text. Finds "authentication logic" or "error handling code" without needing exact strings. Uses TF-IDF with synonym expansion.

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": {
      "query": "<query>"
    },
    "name": "semantic_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesNatural language query, e.g. "authentication flow" or "database connection handling"
file_globNoFilter by file pattern, e.g. "*.py"
max_resultsNoMax results (default: 15)

Output Schema

NameRequiredDescriptionDefault
totalYes
matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuine value by disclosing the ranking mechanism (TF-IDF with synonym expansion), which tells the agent results are fuzzy and synonym-driven rather than exact. It says nothing about result ordering, score handling, or corpus scope, so it is useful but not rich.

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?

Three short, front-loaded sentences: capability, motivating example, then mechanism. No filler, though the TF-IDF detail is arguably optional for tool selection and could be considered implementation trivia.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, idempotent search tool with a full output schema and fully described parameters, the description covers what an agent needs to select and call it. Only the relationship to literal-search alternatives and any result-scope caveats are missing.

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%, with each of the three parameters documented including an example for query and a default noted for max_results. The description adds no parameter-level meaning beyond the schema, 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?

States a specific verb and resource ("Search code by concept") and immediately contrasts it with plain text search, with concrete examples like "authentication logic" and "error handling code". This differentiates it from the sibling search_code without naming it, though it never confirms such a sibling exists.

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

Usage Guidelines4/5

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

Clear context for when to reach for it: when you don't have exact strings and want conceptual matches. The gap is that it never states when NOT to use it or which alternative (e.g. literal/regex code search) to pick when exact strings are known.

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