Skip to main content
Glama

query_facts

Retrieve facts from your knowledge base by applying filters for subject, predicate, object, confidence, and validity date.

Instructions

Query facts by various criteria.

Args: subject: Filter by subject (case-insensitive) predicate: Filter by predicate (case-insensitive) object: Filter by object (case-insensitive) subject_type: Filter by subject type object_type: Filter by object type min_confidence: Minimum confidence threshold valid_at: Filter by validity date (ISO format: YYYY-MM-DD) limit: Maximum results (1-100, default 50)

Returns: List of matching facts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
objectNo
subjectNo
valid_atNo
predicateNo
object_typeNo
subject_typeNo
min_confidenceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

B3/5.0
Behavior2/5

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

With no annotations provided, the description must carry the burden. It implies a read-only action via 'Query' and states a return type, but does not explicitly confirm non-mutation, explain filter combination semantics, or disclose potential side effects or limitations. This is a significant gap for a tool with 8 optional filters.

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?

The description is relatively short and front-loaded with the main purpose. The Args block duplicates the schema property list, but the added notes are useful. It is not overly verbose, though it could be tightened by merging parameter details into a more compact form.

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

Completeness2/5

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

Given 8 optional parameters and no output schema specification in the description, the tool lacks essential context: how filters combine (AND/OR), matching semantics (exact vs partial), pagination behavior, or a typical use case. The description is too thin for an agent to confidently construct complex queries, especially without any annotation support.

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?

The Args block provides meaning beyond the schema: it clarifies case-insensitivity for subject/predicate/object, the ISO format for valid_at, a threshold meaning for min_confidence, and a range for limit. Since the schema has no descriptions (coverage 0%), this compensation is valuable, though explanations are brief and some are just restatements of the parameter names.

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?

The description states the tool queries facts with criteria, which is a clear verb and resource. However, it doesn't differentiate from sibling tools like search_facts or list_facts, and 'various criteria' is vague without context. It's more specific than a tautology but lacks explicit differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives like search_facts or list_facts. The description provides no context for selecting this filter-based query over other fact-access tools, leaving the agent to infer its place among siblings.

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

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/michaelkrauty/mcp-notes'

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