Skip to main content
Glama
Ocuco
by Ocuco

sourcegraph_deep_search

Search your codebase using natural language questions. Get precise answers about architecture, error handling, API endpoints, and more without writing complex queries.

Instructions

AI-powered Deep Search that understands natural language questions about your codebase. Ask questions like "How does authentication work?" or "Where are API endpoints defined?". This uses Sourcegraph's agentic search (REST API v6.7+) and may take 10-60 seconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
questionYesNatural language question about your codebase. Examples: "Does the repo have a README?", "How is error handling implemented?", "Where are database migrations defined?"
timeout_secondsNoOptional: Maximum time to wait for answer (default: 60 seconds)
Behavior3/5

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

With no annotations provided, the description must carry the full burden. It discloses that it uses Sourcegraph's agentic search (REST API v6.7+) and may take 10-60 seconds, which is useful. However, it does not explicitly state that it is a read-only operation or describe any side effects, which is a gap for a tool with no annotation coverage.

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?

The description is two sentences: the first gives the primary purpose with examples, the second adds key technical details about the underlying API and latency. It is front-loaded, concise, and every sentence adds value without fluff.

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?

The tool has no output schema, so the description should explain what the tool returns. It does not describe the output format or content of the answer. It covers the key operational context (time, API) but misses return value expectations and any caveats about scope or limitations.

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?

The input schema has 100% description coverage, so the baseline is 3. The description reinforces the question parameter with examples, but it does not add new meaning beyond what the schema already provides. The timeout_seconds parameter is not mentioned in the description but is fully covered by the schema.

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?

The description clearly states this is an AI-powered deep search for natural language questions about a codebase, with concrete examples. It distinguishes itself from sibling sourcegraph_search_code by emphasizing natural language and agentic search, and from other Jira tools which are unrelated.

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?

The description provides clear usage context by giving example questions and noting it may take 10-60 seconds. However, it does not explicitly mention when to use sourcegraph_search_code instead of this tool, though the natural language focus implies it for conversational queries.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ocuco/hive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server