Skip to main content
Glama

clangd_workspace_symbols

Read-only

Find workspace symbols across chosen configurations, or search all available contexts when none are specified.

Instructions

Find workspace symbols in selected configurations.

Omitted or empty configurations select all available contexts.

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

Input Schema

NameRequiredDescriptionDefault
queryYes
timeoutNo
configurationsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.2.2

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds that empty configurations means all contexts, which is useful behavioral context. It does not disclose query matching semantics (fuzzy vs. exact), how partial-name queries resolve, or what timeout expiry does, leaving real gaps for a search tool.

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?

Two short sentences, with the operative behavior front-loaded and no filler wording. It is efficient, though the brevity comes at the cost of detail the tool needs.

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 output schema exists, so return-value explanation is unnecessary, and the tool is a single search with three simple parameters. Still missing is what a "configuration" actually is (presumably from clangd_configurations) and how query strings are matched, which an agent needs to call this correctly.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must carry the load. It clarifies the fallback meaning of configurations, but the required query parameter is never characterized (match semantics, case sensitivity, partial names) and timeout is entirely unexplained beyond its presence in 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 ("Find workspace symbols") and scopes it to selected configurations, which separates it from the file-local clangd_document_symbols. It stops short of naming that sibling explicitly, so the differentiation must be inferred from the name.

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

Usage Guidelines2/5

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

The only guidance given concerns what happens when configurations is omitted or empty; there is no statement of when to prefer this over clangd_document_symbols, clangd_references, or workspace_text_search. An agent gets no routing criteria for this search-style tool.

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