Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBTOOL_DBNoIndex path.<cache>/index.sqlite
DEBTOOL_CACHE_DIRNoCache directory.$XDG_CACHE_HOME/debtool
DEBTOOL_INDEX_TTLNoMax index age in seconds (0 = no age limit).0
DEBTOOL_MAX_OUTPUTNoMax characters returned per tool call.12000
DEBTOOL_AUTO_REFRESHNoRebuild when dpkg/apt metadata changes.1

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Local Debian package and command discovery. Read-only: nothing is installed, started or changed; install plans only print a command for the user to run.

Use this order, cheapest first:

  1. deb_search(intent) — find commands/packages by what you want to do.

  2. deb_card(name) — usage, package, binaries, man pages for one hit.

  3. deb_man(name, mode="examples"|"synopsis"|"options") — focused excerpts.

  4. deb_provides(command) — which package provides a command.

  5. deb_install_plan(package) — exact sudo apt install ... command.

Prefer installed tools. If a package is available but not installed, ask the user to run the printed command; never assume you may install it.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
deb_searchB

Find Debian commands, applications or packages for an intent.

deb_cardC

Compact usage card for one command, package, app or service.

deb_manC

Focused excerpt from a man page instead of the whole page.

deb_providesB

Which package provides a command or file (installed or available).

deb_install_planA

Simulate an install and print the exact sudo command for the user.

deb_compareC

Compare candidates: installed state, size, binary count, summary.

deb_statusB

Index freshness, size and counts; optional helper availability.

deb_refreshA

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

Prompts

Interactive templates invoked by user choice

NameDescription
find_debian_toolGuided workflow: turn a task into the right Debian tool.

Resources

Contextual data attached and managed by the client

NameDescription
debtool-statusIndex status and data sources.
debtool-installedInstalled packages, one compact line each.

TDQS

A3.5/5.0

Scored across 8 tools

Disambiguation5/5

Each tool targets a distinct operation: search, provides, man, card, install_plan, compare, status, and refresh. There is little overlap, and the descriptions make the boundaries clear.

Naming Consistency4/5

All tools consistently use the deb_ prefix, which makes the server easy to identify. The suffixes mix noun and verb forms (deb_card, deb_search, deb_status, deb_refresh), but the pattern remains predictable and readable.

Tool Count5/5

Eight tools is well-scoped for a Debian package/command lookup and planning server. Each tool has a distinct role, and there is no obvious bloat.

Completeness4/5

The surface covers discovery, package ownership, man pages, comparisons, install planning, and index maintenance. Minor gaps exist, such as no uninstall/removal plan or dependency inspection, but core workflows are supported.