Skip to main content
Glama

Source Map Info

sourcemap_info
Read-only

Displays metadata and statistics for a source map file—source count, mappings, lines, size, and debug ID—so you can understand its contents before performing lookups.

Instructions

Show metadata and statistics for a source map file. Returns file name, source count, names, mappings count, lines, content size, and debug ID. Use this to understand what a source map contains before doing lookups.

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_info"
  }
}

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.9/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 adds value by enumerating the returned fields (file name, source count, mappings count, lines, content size, debug ID), which matters since there is no output schema. It does not mention failure behavior for a missing or malformed .map file, which is the main remaining gap.

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 the purpose and followed by the return inventory and usage hint, with no filler. The return-field list is somewhat comma-heavy but every item is concrete.

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 inspection tool with no output schema, listing the returned fields and the sequencing hint against lookups covers what an agent needs to call it correctly. Only error conditions and any size/performance caveats are absent.

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?

With a single parameter at 100% schema description coverage, the schema already documents the `file` argument and its .map path expectation. The description only echoes "source map file" and adds no path format, relative-vs-absolute, or size guidance beyond the schema, so baseline 3 applies.

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 ("Show metadata and statistics for a source map file") and enumerates exactly what comes back, which separates it from lookup/mapping/extract siblings. It stops short of naming a specific sibling tool, so an agent must infer the boundary from the closing clause.

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

Usage Guidelines4/5

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

The line "Use this to understand what a source map contains before doing lookups" gives a clear triggering context and orders it ahead of the lookup tools. It does not state when this tool is the wrong choice (e.g. if you already know the file and just need sources), so no explicit exclusions.

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