Skip to main content
Glama

Search Global Knowledge Graph

search_global_knowledge
Read-onlyIdempotent

Search machine-wide patterns, library quirks, and cross-project invariants in global memory to find relevant entries ranked by BM25.

Instructions

Search machine-wide patterns, library quirks, and cross-project invariants in ~/.ag-memory-mcp/global.db using BM25 ranking.

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": "search_global_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoKeywords, library names, or error patterns
categoryNoOptional category filter
tech_stackNoOptional tech stack filter (e.g. 'nodejs', 'general')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds useful behavior beyond that: BM25 relevance ranking and the on-disk database location. It says nothing about result ordering, pagination, or what an empty result means, which is a meaningful gap for a search tool.

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?

A single front-loaded sentence with no filler: verb, scope, content types, storage path, and ranking scheme in one pass. Nothing is repeated and nothing is wasted.

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?

For a read-only, filter-only search with all parameters optional and no output schema, the definition covers enough to invoke it correctly. The remaining gap — expected result shape and ordering — is modest given the annotations carry the safety profile, but it is the one thing an agent would still wonder about.

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 75%, so the schema already documents query, category, and tech_stack, with limit constrained by minimum/maximum. The description adds no parameter-level meaning — no guidance on query syntax, how category and tech_stack compose, or that an empty query with filters is a valid listing pattern.

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?

Specific verb (search) plus resource (machine-wide patterns, library quirks, cross-project invariants) with the concrete storage location and ranking method named. It implicitly distinguishes itself from project-scoped siblings through the 'machine-wide'/'global.db' scoping, but never explicitly contrasts with search_project_memory, leaving the boundary to inference.

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 only implied by the scope words 'machine-wide' and 'cross-project' — an agent can infer this is the tool for knowledge outside a single project. There is no explicit statement of when to prefer this over search_project_memory, nor any exclusion such as when-not to use it.

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