Skip to main content
Glama

whats_in_files

Batch retrieve outlines for multiple files in one call, returning symbol trees with signatures and line numbers so you can understand code structure without reading full files.

Instructions

Batch retrieves outlines for multiple files in one call. Returns symbol trees with signatures and line numbers for each file.

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": {
      "file_paths": "<file_paths>",
      "repo": "<repo>"
    },
    "name": "whats_in_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name (as shown in list_repos)
file_pathsYesList of relative file paths

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the return content (symbol trees with signatures and line numbers), which is genuinely useful, but says nothing about read-only nature, partial failures on bad paths, batch size limits, or whether unindexed files error out.

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?

Two sentences, zero filler, with the batch scope front-loaded before the return-value statement. Nothing redundant and nothing buried.

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 two-parameter read tool with no output schema, the description covers both the action and the shape of the result, which is the main thing an agent needs. Remaining gaps (failure behavior on missing files, batch limits) are minor for this complexity level.

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%, so both parameters (repo, file_paths) are already documented in the schema. The description adds no extra meaning such as path resolution rules, whether paths are relative to repo root, or ordering guarantees for the returned outlines.

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?

Names a specific verb and resource ('Batch retrieves outlines for multiple files') and scopes it to a single call, which implicitly positions it against the singular per-file sibling. It never names that sibling, so differentiation is inferable rather than explicit.

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?

The batch framing hints at when to prefer this over a single-file lookup, but there is no explicit when-to-use or when-not-to-use statement and no named alternative. The 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.