Skip to main content
Glama
mcp-server-nuxt

mcp-server-nuxt

by rynx-cc

search_code

Search project source files by substring or regex to locate code and return matching files with line/column numbers and surrounding context lines.

Instructions

Search project source files for a substring or regex. Returns matching files with line/column numbers and surrounding context lines.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results (default 50)
queryYesSubstring or regex to search for
offsetNoSkip the first N matches (default 0)
fileTypesNoOptional file extensions, e.g. ["vue", "ts"]
maxResultsNoMaximum number of results (default 50; alias of limit)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.9.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Maximum number of results (default 50)",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / maxResults / description
      Previous value: -"Maximum number of results (default 50)"New value: +"Maximum number of results (default 50; alias of limit)"
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip the first N matches (default 0)",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does disclose the return shape (matching files with line/column numbers and surrounding context lines), which implies a safe read operation. It omits other behavior an agent needs: case sensitivity, which regex engine/syntax, whether gitignored or vendored files are skipped, and whether 'a result' means a match or a file.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with the action front-loaded and the return format immediately after. Every clause earns its place and nothing is repeated from the schema.

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 5-parameter read tool with no annotations and no output schema, the description covers purpose and return shape adequately, and the schema covers per-parameter detail. It falls short on search scope (whole project? gitignore respected?) and on the duplicated maxResults/limit parameters, both of which can cause incorrect invocation.

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 every parameter already has its own documented semantics and the baseline is 3. The description adds nothing beyond that, notably leaving the limit vs maxResults alias relationship and limit/offset pagination interplay entirely to 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 and resource ('Search project source files') plus the accepted query forms (substring or regex), which is far more precise than a name echo. It does not, however, distinguish itself from siblings such as find_usages or find_api_callers, so an agent must guess which one applies when looking for a symbol rather than literal text.

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?

Usage is only implied: by specifying 'substring or regex' it hints this is the plain-text search path, but it names no alternative and gives no when-not guidance (e.g., 'use find_usages for symbol references'). An agent facing overlapping sibling tools gets no disambiguation.

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