Skip to main content
Glama

pin_library_version

Pins a library version to a workspace so its symbols appear in cross-repo search; index the library source first, then pin it for workspace-wide symbol lookup.

Instructions

Pins a library version to a workspace. Once pinned, search_all_repos includes that library's symbols. The library must be indexed via index_library_source first.

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": {
      "workspace": "<workspace>",
      "library": "<library>"
    },
    "name": "pin_library_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
libraryYesLibrary display name with version (e.g., 'numpy@2.2.2')
workspaceYesWorkspace name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden and does disclose the key effects: a mutation scoped to a workspace and the resulting inclusion in search_all_repos results. However, it says nothing about idempotency (what happens if the same library is pinned twice), whether an existing pin is replaced, whether the pin persists across sessions, or what errors occur when the library is missing or not yet indexed.

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 short sentences, front-loaded with the action and the resulting effect, then the prerequisite. No filler, no redundancy, and the ordering matches the order an agent needs the information to decide whether to call it.

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 two-parameter mutation with no annotations and no output schema, the description covers purpose, effect, and prerequisite, which is most of what an agent needs. The remaining gap is failure and repeat-call behavior — what happens on a duplicate pin or an unindexed library — which is meaningful for a state-changing tool but not fatal.

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%, with both parameters documented including a format example ('numpy@2.2.2'), so the baseline is 3. The description adds only the constraint that the named library must already be indexed, which informs the 'library' parameter but does not clarify format, matching behavior, or whether display name versus identifier is required beyond 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?

States a specific verb and resource ('Pins a library version to a workspace') and immediately describes the observable consequence: 'Once pinned, search_all_repos includes that library's symbols.' That effect clause distinguishes it from siblings like index_library_source or search_all_repos far better than a bare restatement of the name would.

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?

Gives a clear precondition for use: 'The library must be indexed via index_library_source first,' which routes the agent to the correct sibling when that condition is unmet. It stops short of stating when pinning is unnecessary or how to undo it (the remove_library sibling is not referenced), so it is not a full when/when-not treatment.

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