Skip to main content
Glama

query_history

Retrieve paginated past decisions from SQLite state for auditing. Specify limit and offset to control output without loading full project state.

Instructions

Return a paginated list of past decisions stored in the SQLite state. Each entry includes the decision text, context label, and timestamp. Use limit and offset for pagination. Useful for auditing what was decided without loading the full project state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of decisions to return. Defaults to 20.
offsetNoNumber of decisions to skip for pagination. Defaults to 0.
Behavior3/5

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

No annotations present, so description carries full burden. Describes read behavior (return list) and mentions SQLite state, but does not explicitly confirm read-only nature, auth needs, or rate limits.

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?

Three sentences: purpose, content, usage guidance. No wasted words. Front-loaded with key action.

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?

Reasonably complete for a simple paginated query. Missing explicit ordering (e.g., by timestamp) or what happens with no parameters, but default handling is in schema.

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 already describes limit and offset with defaults. Description adds 'Use limit and offset for pagination,' which clarifies their role but does not add significant value beyond schema.

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?

Clear verb and resource: 'return a paginated list of past decisions stored in the SQLite state.' However, does not explicitly distinguish from siblings like get_project_state or get_state, though their purposes are implicitly different.

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?

States usefulness for auditing without loading full state, implying when to use. No explicit when-not-to-use or alternatives listed, but context is provided.

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/Fmarzochi/EGC'

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