Skip to main content
Glama

List Sources

sourcemap_sources
Read-only

List original source files embedded in a source map and inspect each file path, embedded content status, size, and ignore-list state to identify which files a bundle was built from.

Instructions

List all original source files embedded in a source map. Shows each source path, whether it has embedded content, content size, and if it's on the ignore list. Use this to understand what files a bundle was built from.

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": "<file>"
    },
    "name": "sourcemap_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesPath to a source map file (.map)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description still adds real value by disclosing the returned fields, including the ignore-list flag and embedded-content indicator. It does not say what happens when the map lacks embedded sources or fails to parse, but for a read-only lister that is a minor gap.

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?

Three short sentences, front-loaded with the action and scope, then the output shape, then the use case. Nothing is redundant and nothing is 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 one-parameter, read-only listing tool with no output schema, the description covers purpose, output fields, and intent, which is enough to call it correctly. Only the failure/empty-map behavior is left unstated.

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's semantics ('Path to a source map file (.map)') are fully specified in the schema at 100% coverage, so the description adds nothing beyond it. Baseline 3 is appropriate since the schema does all the work.

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 ('List all original source files embedded in a source map') and enumerates exactly what each result row contains (path, embedded content flag, size, ignore status). It clearly implies a listing/read view rather than content extraction, but it never names a sibling such as sourcemap_extract_sources to make the boundary 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?

'Use this to understand what files a bundle was built from' gives a clear positive use case, but there is no when-not guidance, no prerequisite (e.g. that a .map file must already exist locally), and no routing to alternatives for fetching or extracting source content.

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