Skip to main content
Glama
EtienneBBeaulac

Multi-Workspace MCP Server

search_crossproject

Search text or regex in configured companion repositories outside the current workspace, with glob, path, and context-line options. Retrieve matches across related projects without leaving your current session.

Instructions

Search text or regex in a configured workspace root, usually a companion repo outside the current project workspace. Prefer built-in code navigation/LSP tools in the current workspace when they apply. Uses ripgrep with output modes, context lines, case-insensitive matching, and pagination; when using contextLines, results include contextBefore/contextAfter arrays.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
globNoOptional glob pattern to filter files by name/extension (e.g., "**/*.swift")
pathNoOptional path relative to workspace root to scope the search. Can be a directory (e.g., "Modules/Messaging/Sources") or a single file (e.g., "Modules/.../File.swift").
limitNoMaximum number of results
offsetNoSkip first N results
patternYesSearch pattern (regex or text)
workspaceYesWorkspace name (none configured — create a workspace-config.json)
outputModeNocontent: show matches with line numbers, files: paths only, count: match countscontent
contextLinesNoShow N lines before/after each match (content mode only)
caseInsensitiveNoCase-insensitive search (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and delivers: discloses the ripgrep backend, output modes, context lines, case-insensitive matching, pagination, and the contextBefore/contextAfter array shape when contextLines is used. Minor gaps remain on default behaviors and error conditions, but for an unannotated tool this is substantial disclosure.

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?

Three information-dense sentences with zero filler: purpose/scope first, usage guidance second, behavioral details third. Each sentence adds distinct value and the most decision-relevant info (what it searches, where) is front-loaded.

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 9-parameter tool with no annotations and no output schema, the description is nearly complete: it covers return shape, scoping, and when to avoid the tool. Remaining gaps are low-stakes for a read-only search — no mention of error handling (e.g., unconfigured workspace) or performance limits, though the schema's workspace enum hints at the configuration issue.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds cross-parameter meaning beyond the schema: it ties pagination (limit/offset), outputMode semantics, and the contextLines return-structure together, and explains what 'workspace' means operationally (configured companion repo).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: 'Search text or regex in a configured workspace root, usually a companion repo outside the current project workspace.' The scope qualifier ('outside the current project workspace') sharply differentiates it from the sibling tools (read/write/edit/list/run_crossproject) and from built-in code navigation.

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?

Gives explicit routing guidance: 'Prefer built-in code navigation/LSP tools in the current workspace when they apply.' This tells the agent when NOT to use the tool, though it names a tool category rather than specific sibling tools or concrete conditions for choosing this one.

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