Skip to main content
Glama

query_entries

Retrieve decisions, constraints, and pipelines from project memory using exact field filters. Combine multiple predicates with AND for precise results, with stable ordering and empty results as valid.

Instructions

Structured field filter — exact AND-combined predicates, NOT relevance search. Use when you know the field values (e.g. absolute constraints scoped to 'hooks/'). Stable ID order, no ranking; empty is a real answer. Includes superseded/deprecated unless you filter status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoSingular alias for `types`. `types` wins if both given.
textNoFree text over text fields; every term must appear (AND, substring).
limitNoCap entries returned (matched_entries reports the total).
scopeNoExact, case-sensitive match on a constraint's scope (e.g. 'hooks/').
sinceNoVerified/created on or after this ISO date.
typesNoRestrict to these entry types. Default: all.
beforeNoVerified/created strictly before this ISO date.
originNouser/agent/import (string or list). Missing counts as 'agent'.
statusNoactive/superseded/deprecated (string or list).
hardnessNoConstraint hardness absolute/advisory (string or list).
tags_allNoEntries with ALL of these tags.
tags_anyNoEntries with AT LEAST ONE of these tags.
supersedesNoThe entry that superseded this id.
project_dirNoAbsolute path to another project to query.
token_budgetNoMax tokens returned (default from config).
superseded_byNoEntries replaced by this id (superseded_by == id).
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: exact AND-combination, stable ID order, no ranking, that empty results are valid, and that superseded/deprecated entries are included unless filtered. This adds significant context beyond the schema.

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 extremely concise, consisting of two sentences that efficiently convey the tool's core purpose, usage context, and key behavioral traits without any extraneous text.

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 large number of parameters (16) and no output schema, the description provides high-level context and behavioral notes but does not explain the return format or pagination. However, it is sufficiently complete for a query tool with well-documented parameters.

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 baseline is 3. The description does not add new information about individual parameters beyond what is already in the schema, so it meets the minimum expectation.

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 it is a structured field filter using exact AND-combined predicates, explicitly distinguishing it from relevance search. It specifies the behavior regarding stable ID order and no ranking, making the purpose 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 a clear use case: 'Use when you know the field values (e.g. absolute constraints scoped to 'hooks/').' It implies when not to use (not for free-form search) but does not explicitly compare to sibling tools like get_context or get_project_summary.

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/jarmstrong158/context-keeper'

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