Skip to main content
Glama

pkg_outline

Read-onlyIdempotent

Maps a package's namespaces or modules with counts, never a type listing. Use it on a completely unfamiliar package or after a version bump, then go to pkg_find.

Instructions

Shows the map of a package (namespaces for NuGet, modules for PyPI and npm, each with a count), never a listing of types. Use it for a completely unfamiliar package, or with refresh=true after a version bump. Otherwise go straight to pkg_find. The first call for a package version downloads and indexes it, which can take a few seconds; later calls are instant. Pin the version (and for NuGet the targetFramework) of the project so the API matches what the project runs against. PyPI packages are read from their wheel and npm packages from their declaration files, without installing, importing or running anything.

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": {
      "packageId": "<packageId>"
    },
    "name": "pkg_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
guideNotrue: put the packages guide first in the result. Use on your first packages call, or when told it changed.
projectNoOptional, pypi and npm only: the project folder (or its pyproject.toml or package.json) inside the workspace whose lock file decides the version; default the workspace folder.
refreshNoOptional: rebuild the index from the package instead of reading the stored one (default false)
versionNoOptional: exact package version, from the project's package list or lock file. Omit for the latest stable.
ecosystemNoOptional: 'nuget' (default), 'pypi' (a Python package) or 'npm' (a JavaScript or TypeScript package).
namespaceNoOptional: only namespaces (modules) that start with this text
packageIdYesPackage id (NuGet, e.g. 'Polly'), project name (PyPI, e.g. 'requests') or package name (npm, e.g. 'zod' or '@tanstack/react-query')
workspaceNoOptional, pypi and npm only: workspace name. With it, and no version, the version comes from the project's lock file (uv.lock, poetry.lock, pdm.lock, pylock.toml; package-lock.json, pnpm-lock.yaml, yarn.lock).
targetFrameworkNoOptional, NuGet only: target framework such as 'net10.0' (default: the configured default)
includePrereleaseNoOptional: allow prerelease when no version is given (default false; NuGet only)
additionalPackageIdsNoOptional, NuGet only: extra package ids whose assemblies the reflection needs, only after an error that names a missing assembly

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses non-obvious behavior: the first call downloads and indexes and "can take a few seconds" while later calls are instant, and it explains that PyPI and npm packages are read from wheels and declaration files "without installing, importing or running anything." That latency and side-effect profile is exactly the context an agent needs to plan a call.

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?

Five short sentences, front-loaded with the identity and the sibling boundary, followed by usage, freshness semantics, version pinning, and safety. Every sentence carries distinct information with no restatement of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with no output schema, the description covers what is returned (namespaces/modules with counts), when to call, indexing cost, and ecosystem-specific extraction behavior. The remaining parameter detail is fully documented in the schema, so nothing an agent needs is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds rationale the schema does not: pin the version and NuGet targetFramework so the resolved API matches what the project actually runs against, and use refresh=true after a bump. It does not explain the remaining parameters (workspace, project, additionalPackageIds), leaving that to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource and defines the output shape per ecosystem: "Shows the map of a package (namespaces for NuGet, modules for PyPI and npm, each with a count)." It also explicitly draws the boundary with its sibling: "never a listing of types... Otherwise go straight to pkg_find."

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

Usage Guidelines5/5

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

It states the exact triggering condition (a completely unfamiliar package, or refresh=true after a version bump), names the alternative (pkg_find) and the condition that selects it, and adds the pinning rule so the index matches the project. Nothing is left to inference.

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