Skip to main content
Glama

query

Search unexpired shared facts by matching text and required tags, with an optional result limit.

Instructions

Search facts that have not expired.

q matches the fact text. tags is a comma-separated list and every tag must match. limit defaults to 20.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
tagsNo
limitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one real behavioral trait: expired facts are excluded from results. However, it says nothing about result ordering, pagination beyond the default limit, whether matching is substring or token-based, or how an empty q behaves — all relevant for a query tool with zero annotation coverage.

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 purpose sentence is front-loaded and each of the two following lines maps to concrete parameters with no filler. Nothing is redundant with the schema beyond the limit default, which usefully reinforces an easily missed behavior.

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

Completeness3/5

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

An output schema exists, so return-value explanation is not required, and all three parameters are addressed. Still, for a tool with no annotations and 0% schema coverage, the definition omits behavioral details an agent would want — result ordering, pagination beyond the default, and matching semantics — leaving it adequate but not complete.

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?

Schema description coverage is 0%, so the description must supply parameter meaning, and it does for all three: q matches the fact text, tags is comma-separated with every tag required (AND semantics), and limit defaults to 20. It does not clarify matching mode for q or whether tags matching is exact, which keeps it short of a 5.

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 a specific verb and resource — 'Search facts' — and adds a scoping qualifier, 'that have not expired', so the agent knows exactly what is retrieved. It does not explicitly contrast with the sibling tools (list, write, delete), but the search framing is distinct enough to infer the difference.

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?

Usage is implied by the search framing: use this when looking for facts by text or tag rather than enumerating or mutating them. There is no explicit when-to-use or when-not-to-use guidance, and no reference to how this differs from the sibling 'list' tool, leaving the agent to infer the routing.

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

Deploy Server

Other Tools