Skip to main content
Glama

query_package_history

Read-only

Retrieve package history from pacman logs: recent transactions, specific package history, failed operations, or database syncs.

Instructions

[HISTORY] Unified tool for querying package history from pacman logs. Supports four query types: 'all' (recent transactions), 'package' (specific package install/upgrade history), 'failures' (failed transactions), and 'sync' (database sync history). Only works on Arch Linux. Examples: query_type='all', limit=50 → recent transactions; query_type='package', package_name='docker' → when docker was installed; query_type='failures' → find errors; query_type='sync', limit=20 → sync history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
query_typeYesType of query: 'all' (recent transactions), 'package' (package history), 'failures' (failed transactions), or 'sync' (database sync history)
package_nameNoPackage name (required for query_type='package')
limitNoMaximum number of results to return (default 50)
Behavior4/5

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

Annotations indicate readOnlyHint=true, and description does not contradict. It discloses the platform limitation (Arch Linux) and the read-only nature. Could mention that it reads pacman logs and no modifications occur, but overall adequate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is a single paragraph but well-organized, starting with purpose and then listing query types with examples. Could be slightly more structured (e.g., bullet points), but efficient and informative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers query types, parameter dependencies, default limit, platform restriction, and examples. For a read-only query tool with rich schema, no output schema is needed. Completely sufficient for correct tool selection and invocation.

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?

Input schema has 100% coverage with descriptions for each parameter. Description adds value by providing usage examples and clarifying dependencies (e.g., package_name required for 'package' type), enhancing meaning beyond 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?

Description clearly states the tool is for querying package history from pacman logs, with four distinct query types. It differentiates itself from sibling tools like check_updates_dry_run or install_package_secure by focusing on historical data retrieval.

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?

Provides concrete examples for each query type, guiding the agent on when to use each. However, it lacks explicit mention of when not to use this tool or alternatives among siblings, though it is implied by the focus on history.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nihalxkumar/arch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server