Skip to main content
Glama

read_symbols

Retrieve source code, signatures, and file info for multiple symbols in one call; missing identifiers are reported as not found.

Instructions

Batch retrieves source code for multiple symbols in one call. Returns source, signature, and file info for each. Reports not_found for any missing IDs.

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": {
      "symbol_ids": "<symbol_ids>"
    },
    "name": "read_symbols"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbol_idsYesList of symbol identifiers

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the return contents (source, signature, file info) and partial-failure semantics ('Reports not_found for any missing IDs'), which is real behavioral value, but says nothing about indexing prerequisites, permissions, or any cap on how many IDs can be batched.

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?

Three short sentences, front-loaded with what the tool does, then return contents, then failure behavior. Every sentence contributes information; nothing is padded.

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, no-output-schema tool, the description covers purpose, return shape, and partial-failure handling, which is close to sufficient. It omits the practical prerequisites an agent needs before calling: how to obtain valid symbol IDs and whether batch size is limited.

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 100% for the single parameter, so 'List of symbol identifiers' is already documented. The description adds no detail on identifier format or where IDs come from (e.g., output of a find_code call), so it does not exceed the schema baseline.

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 ('retrieves source code for multiple symbols') and makes the batch scope explicit, which implicitly separates it from the single-symbol sibling read_symbol. It stops short of naming that sibling, so the distinction is inferable rather than stated.

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?

'Batch ... in one call' implies you should use this when you have several IDs rather than calling a single-symbol tool repeatedly, but no explicit when-to-use or when-not guidance is given and no alternative tool is named. An agent must infer the routing rule from the word 'Batch'.

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