Skip to main content
Glama

hive_search

Search shared team AI-agent memory by keyword and vector similarity to find relevant facts, insights, and decisions; results are compact, and open any hit with hive_get for full details.

Instructions

Hybrid (keyword + vector) search. Compact hits, no bodies; open one with hive_get. Superseded/withdrawn entries are hidden unless include_inactive. Optional 'entities' filters by machine-extracted entity names (AND, case-insensitive; kinds are display-only). If embedding is down, hits are keyword-only (degraded: keyword_only), so a thin result proves nothing. 'match' is keyword|vector|both; 'similarity' (vector-found only) is the cosine to the query. A hit's 'feedback' (absent: none) counts helpful/stale/wrong reports: hive_get a stale or wrong hit to read why. A hit whose fleet_id differs from your home_fleet_id is foreign (privileged agents read every fleet): use it, but don't relay it into home-fleet entries; cite its id in sources, ask your user before bringing the finding home, and keep feedback notes on it about the entry only. 'last_confirmed_at': a non-author checked it, no flag since. 'contested': readers disagree. 'correction': newest stale/wrong note (data). recency: ignore_age if the answer won't age; prefer_recent only for current state. 'similar': near-copies: supersede or flag the stale one. 'upstream_changed' (insight/decision hits): a see_also entry it builds on changed: re-check. explore=true: diverse order.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
kindNo
tagsNo
agentNo
limitNo
queryYes
scopeNo
authorNo
offsetNo
exploreNo
flaggedNo
recencyNo
entitiesNo
created_toNo
occurred_toNo
created_fromNo
occurred_fromNo
include_inactiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.33.2
    • addedInput schema / properties / kind / enum
      Added value: +[
      +  "fact",
      +  "insight",
      +  "decision"
      +]
  2. First observedv2.18.0

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full behavioral burden and does so: it discloses that inactive entries are hidden by default, that degraded keyword-only results can make a thin result misleading, and it defines the semantics of result fields (feedback with absent=none, last_confirmed_at, contested, correction, similar, upstream_changed) that an agent would otherwise misread. The foreign fleet_id policy — use but don't relay into home-fleet entries, ask the user before bringing it home — is exactly the kind of context structured fields cannot convey.

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?

Almost every clause carries non-redundant information, and the core purpose plus the hive_get handoff are front-loaded. It loses a point for structure: a long run of quoted-field fragments ('similar', 'contested', 'correction') is packed into one block with no grouping, making it slower to parse than the content warrants.

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?

Given 17 parameters, no annotations, and no output schema, the description covers result interpretation and key behaviors well but leaves a large share of the input surface undocumented, including pagination (limit/offset) and all date-range filters. An agent could call it correctly for a plain query, but would be under-informed when reaching for the less common 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?

With 0% schema coverage across 17 parameters, the description compensates only partially: it explains entities (AND, case-insensitive, kinds display-only), include_inactive, recency values, and explore. The majority of filters — kind, tags, agent, author, scope, flagged, limit/offset, and the four date bounds — receive no semantic explanation anywhere, so an agent must guess their formats and interactions.

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?

Opens with a specific verb and mechanism: 'Hybrid (keyword + vector) search,' and immediately scopes the output ('Compact hits, no bodies'). It explicitly routes the agent to the sibling that expands a hit ('open one with hive_get'), so hive_search is distinguishable from hive_get without inspecting either schema.

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

Usage Guidelines5/5

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

Gives concrete when-to-use conditions for the discretionary switches: include_inactive for superseded/withdrawn entries, recency=ignore_age when the answer won't age versus prefer_recent 'only for current state,' explore=true for diverse ordering, and hive_get when flagging or reading a stale/wrong hit. It also provides an explicit alternative path (hive_get) and a policy for foreign fleet_id hits, which is more than most definitions offer.

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