Skip to main content
Glama

opencode_find_symbols

Read-only

Find workspace symbols by name to locate functions, classes, and variables in your codebase.

Instructions

Find workspace symbols (functions, classes, variables) by name.

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

Input Schema

NameRequiredDescriptionDefault
queryYesSymbol name to search for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true and idempotentHint=false, so safety is covered and the description only adds that results are workspace symbols of several kinds. It does not explain the surprising idempotentHint=false for a lookup, nor whether matching is exact, prefix, or fuzzy, nor any result caps.

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?

One short sentence with the core resource front-loaded and the clarifying enumeration immediately after. Nothing is wasted and nothing is buried.

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 one-parameter read-only lookup with full schema coverage, the definition is adequate but leaves out matching semantics (exact vs fuzzy), whether results span all languages/files in the workspace, and any limit on returned symbols. Those omissions matter for an agent deciding between this and a file-level search.

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 single parameter is fully described in the schema as 'Symbol name to search for', which meets the baseline. The description's 'by name' reinforces that this is an identifier, not a substring or content query, but adds no syntax, casing, or matching-mode details.

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 symbols) and parenthetically enumerates the symbol kinds (functions, classes, variables), which disambiguates it from a raw text search. It does not contrast itself with siblings like opencode_file_search or opencode_find_files, so the agent must infer the boundary.

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?

'By name' implies a name-based lookup rather than a content-scoped search, which hints at when to prefer it over a file/text search. However, there is no explicit when-to-use statement, no exclusion of alternatives, and no note about what to do if the exact name is unknown.

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