Skip to main content
Glama

deb_refresh

Idempotent

Rebuild the local Debian package index when status reports it is stale, choosing all packages or installed only. Use it to restore accurate search and lookup results.

Instructions

Rebuild the local index. Only call when deb_status reports it is stale.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "deb_refresh"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNo'all' (installed + available, ~30s) or 'installed' (fast).all

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this a non-read-only but idempotent, non-destructive local mutation, freeing the description to add the staleness gate and the fact that an existing index is rebuilt/replaced. It does not state cost or return effects, but the ~30s timing lives in the parameter schema, so the remaining gap is modest.

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?

Two short sentences, zero filler, with the action stated first and the precondition second. Every sentence earns its place.

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 annotations covering safety/idempotency, full schema coverage for the single optional parameter, and an output schema handling return values, the definition is nearly self-sufficient. Only an explicit note on cost/impact of an unnecessary rebuild is missing.

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 'scope' property already documents the 'all' vs 'installed' modes and their relative speed. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

'Rebuild the local index' names a concrete verb and resource, and the second sentence ties it explicitly to the deb_status sibling, so an agent can distinguish it from status/query tools without opening schemas.

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?

'Only call when deb_status reports it is stale' is an explicit gating condition naming the tool that produces it. That is precisely the when-to-use guidance an agent needs for a refreshing operation, leaving little to inference.

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