Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_search_symbols

Read-only

Search CrossPad repositories for symbol definitions—classes, functions, macros, enums, typedefs—while skipping call sites and declarations, and classify matches by kind.

Instructions

Search symbol DEFINITIONS (classes, functions, macros, enums, typedefs) across the CrossPad repos via git grep. Filters to definitions only (skips call sites and declarations), classifies the kind and aggregates all repos. Substring match: 'Foo' matches FooBar and MyFoo. Vendored and generated trees (lvgl, managed_components, thorvg, TFT_eSPI, STM Drivers/Middlewares/CMSIS, build, ...) are skipped; pass include_vendored=true to scan them.

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

Input Schema

NameRequiredDescriptionDefault
kindNoall
queryYesSymbol name (substring match, case-insensitive on filter)
reposNoRepo names to scan, or ['all']. Names: crosspad-core, crosspad-gui, crosspad-pc, platform-idf, ESP32-S3, stm32-r20, crosspad-hil.
max_resultsNo
context_linesNoSurrounding lines per match (like grep -C). 0 = no context.
include_vendoredNoScan vendored/generated trees too (lvgl, managed_components, STM Drivers/Middlewares, build, …). Default false — these are almost always noise.

Output Schema

NameRequiredDescriptionDefault
docsNo
nextNo
errorNo
queryNoThe search text, as given.
noticeNo
resultsNoThe matches, up to max_results.
successYes
truncatedNoThe list stops at max_results.
kind_filterNoThe kind filter, when one was given.
total_matchesNoHow many matches were found before the cut at max_results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0
  2. Removedv10.2.0
  3. First observedv9.2.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses the git grep mechanism, definitions-only filtering, kind classification, repo aggregation, substring matching with an example, and default exclusion of vendored/generated trees with an override. This gives the agent substantial behavioral context, while the output schema covers return structure.

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 purpose and scope, then matching semantics and vendored-tree behavior. It is dense but well organized; the vendored tree list is somewhat lengthy but earns its place by clarifying the default exclusion.

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?

Given the readOnly annotation, output schema, and six-parameter input schema, the description is complete enough for correct invocation. It explains the search mechanism, matching behavior, and vendored-tree scope; minor gaps around kind classification and max_results semantics are acceptable because the schema carries them.

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 67%, and the schema already documents query matching, repo names, context_lines, and include_vendored rationale. The description reinforces substring matching with an example and lists vendored trees, but adds little about kind, max_results, or repos beyond what the schema provides.

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 symbol definitions (classes, functions, macros, enums, typedefs) across CrossPad repos via git grep. It explicitly limits results to definitions by skipping call sites and declarations, making the operation clear, though it does not explicitly distinguish itself from named sibling tools.

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?

Provides clear usage context: search for symbol definitions rather than call sites or declarations, and skip vendored/generated trees by default unless include_vendored=true. It does not explicitly route the agent to or away from alternative tools such as docs search or analysis tools.

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