Skip to main content
Glama

query_package_history

Read-only

Query Arch Linux package history from pacman logs to track installations, upgrades, failures, or sync events for system monitoring and troubleshooting.

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)
Behavior3/5

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

Annotations declare readOnlyHint=true, which the description aligns with by describing query operations. The description adds useful context beyond annotations, such as the platform constraint ('Only works on Arch Linux') and behavioral details about query types and examples. However, it lacks information on rate limits, error handling, or output format.

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?

The description is front-loaded with the core purpose, followed by query types and examples in a logical flow. Every sentence adds value without redundancy, and it efficiently conveys necessary information in a compact form.

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?

Given the tool's moderate complexity, rich schema coverage, and read-only annotation, the description is largely complete. It covers purpose, usage, and constraints, but lacks details on output format or error cases, which would be helpful since there is no output schema. It compensates well with examples.

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 description coverage is 100%, so the schema fully documents parameters. The description adds minimal value by reinforcing query_type options with examples and clarifying package_name usage, but does not provide significant additional semantics beyond the schema. Baseline 3 is appropriate given high schema coverage.

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?

The description clearly states the tool's purpose with specific verbs ('querying package history') and resources ('pacman logs'), and distinguishes it from siblings by specifying its unique domain (package history queries). It explicitly lists the four query types, making the scope unambiguous.

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?

The description provides clear context for when to use each query type with examples (e.g., 'query_type="package", package_name="docker" → when docker was installed'), but it does not explicitly state when NOT to use this tool or name alternatives among siblings. The examples effectively guide usage without exclusions.

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-linux-mcp'

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