Skip to main content
Glama

List Mappings

sourcemap_mappings
Read-only

List generated-to-original position mappings from a source map, with pagination and optional source-file filtering.

Instructions

List mappings in a source map with pagination. Shows generated and original positions for each mapping. Optionally filter by source file. Use --limit and --offset for pagination.

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

Input Schema

NameRequiredDescriptionDefault
fileYesPath to a source map file (.map)
limitNoMaximum number of mappings to return (default: 50)
offsetNoSkip first N mappings (default: 0)
sourceNoFilter by source filename

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description usefully adds that results are paginated and what each row contains, but the instruction "Use --limit and --offset" uses CLI flag syntax that does not map to how this tool is actually invoked, which adds mild confusion rather than clarity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is short and front-loads the core purpose well. However, the trailing sentence about --limit and --offset earns little place: it repeats schema information and uses terminology inconsistent with the tool's actual call interface.

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?

With no output schema, the description compensates by stating that generated and original positions are returned per mapping. Combined with the annotations covering the read-only profile and the fully documented schema, an agent has enough to call this correctly; only the missing alternative-tool routing keeps it from a 5.

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 description coverage is 100%, so file, limit, offset, and source are already fully documented with defaults and bounds. The description only restates pagination and source filtering, and does so with flag-style naming that duplicates rather than enriches the schema.

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?

The description states a specific verb and resource ("List mappings in a source map") and adds the scope of what each entry contains (generated and original positions). It is clearly distinguishable from siblings like sourcemap_lookup or sourcemap_sources, though it never names them explicitly.

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?

"Optionally filter by source file" implies when the source parameter is useful, but there is no explicit when-to-use versus when-not guidance and no pointer to the sibling that handles single-position resolution or source enumeration. Usage is inferable but left to the agent.

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