Skip to main content
Glama

Batch Resolve Libraries

gt_batch_resolve
Read-onlyIdempotent

Resolve up to 20 library names to registry IDs and documentation URLs in one call, avoiding separate lookups for each dependency.

Instructions

Resolve 1-20 library names to IDs and docs URLs in one call, registry only. One name with npm/PyPI fallback: gt_resolve_library. Project dependencies: gt_auto_scan. Registry is Elastic-2.0: look up named libraries only, never enumerate.

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": {
      "libraryNames": "<libraryNames>"
    },
    "name": "gt_batch_resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
libraryNamesYese.g. ['react', 'next', 'tailwind']

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv8.1.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / libraryNames / description
      Previous value: -"Array of library names to resolve (max 20). Example: ['react', 'next', 'tailwind']"New value: +"e.g. ['react', 'next', 'tailwind']"
  2. First observedv5.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: the 1-20 batch cap, registry-only scope, and the Elastic-2.0 constraint that forbids enumeration. It stops short of saying how partial or unresolvable names are handled.

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 terse clauses, front-loaded with the core action and followed by routing and policy constraints. No filler sentences; each clause carries a distinct signal.

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 batch tool with no output schema, the description states both the return shape (IDs and docs URLs) and the batching limit. The remaining gap is failure semantics for a batch call, such as what happens when some names miss in the registry, which an agent calling with up to 20 names would want to know.

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 coverage is 100% and the single array parameter is fully documented with min/max items and a usage example, so the baseline of 3 applies. The description's '1-20 library names' largely restates the schema bounds rather than adding new meaning about item format or normalization.

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?

States a specific verb and resource ('Resolve 1-20 library names to IDs and docs URLs'), plus the scope constraint 'registry only'. An agent can distinguish it from gt_resolve_library and gt_auto_scan without opening any schema.

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?

Explicit routing: single name with npm/PyPI fallback goes to gt_resolve_library, project dependencies go to gt_auto_scan, and 'never enumerate' is a clear prohibition. Both the when-to-use and when-not-to-use conditions are named.

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