Skip to main content
Glama

package_info

Read-only

Check whether an APT package is installed and retrieve its installed version, candidate version, and description; fall back to package-name search when no exact match.

Instructions

Whether an apt package is installed, its version, candidate version and description; falls back to searching package names if it isn't an exact match.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/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 adds real behavioral context by disclosing the fuzzy-name fallback, which changes how an agent should interpret ambiguous input. It does not mention failure behavior when nothing is found or any package-manager prerequisites, but with annotations carrying the safety burden this is a solid addition.

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?

One compact, front-loaded sentence covering output, then the fallback qualifier; nothing is redundant and the returned fields come before the edge-case behavior. The semi-colon split reads cleanly for a tool of this size.

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 only one parameter, an output schema handling return values, and read-only annotations, the definition supplies everything needed to invoke it correctly, including the ambiguity-handling fallback. The only gap is operational context such as whether it requires an apt-based system or what happens on a total miss.

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?

There is a single required parameter with 0% schema description coverage, so the description must supply meaning — and it does, making clear that 'name' is a package name and that it need not be an exact match because a search fallback applies. That is meaningful semantics beyond the bare string type, though it stops short of stating case sensitivity or format expectations.

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 names a specific resource (an apt package) and the exact facts it reports — installed state, installed version, candidate version, and description — which is far more concrete than a restatement of the name. It implicitly separates itself from package_updates by focusing on a single package, but never names a sibling or explicitly contrasts the two, keeping it below a 5.

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?

Usage is only implied: an agent can infer this is the tool for inspecting one apt package rather than listing updates. The one genuinely useful routing hint is the fallback rule — it will search package names when the input is not an exact match — but there is no statement of when to prefer this over package_updates or what to do when nothing matches.

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