Skip to main content
Glama

Inspect module import mappings

bpj_inspect_import_map
Read-onlyIdempotent

Look up bare module names in global import map entries by exact key and longest matching prefix.

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": {
      "map": "<map>",
      "specifiers": "<specifiers>"
    },
    "name": "bpj_inspect_import_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
mapYes
specifiersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare the operation read-only, idempotent, non-destructive, and closed-world, so safety needs no discussion here. The description adds real behavioral detail by disclosing the resolution algorithm (exact key first, then longest prefix), but it says nothing about what happens to unmatched specifiers or how results are reported.

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?

It takes the form of a single front-loaded sentence with no filler, and the resolution rule is given equal weight. It is efficient, but its terseness is part of why key operational detail is missing.

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 two-parameter lookup tool with full annotation coverage, the definition is nearly adequate, but it has no output schema and no description of the return shape, and it does not say how unmatched or invalid input is handled. An agent still has to guess what it gets back.

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 0%, so the description has to do the explaining, and it covers the two parameters only in general terms: 'map' is described as an import map document, and 'specifiers' as bare module names, without stating that the specifiers are one per line or that the map must be passed as a JSON string.

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 opens with a specific verb ('Look up') and a specific resource ('bare module names in global import map entries'), and it names the resolution rules ('exact key and longest matching prefix'). That is much more informative than the title alone, though it never distinguishes this tool from a nearby lookup such as bpj_redirect_map_check.

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

Usage Guidelines2/5

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

The sentence describes how lookup works, not when to reach for this tool instead of a sibling or when not to use it. There is no prerequisite guidance (such as needing a valid import map JSON) and no mention of alternatives, so an agent must infer the context from the name.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.