Skip to main content
Glama

Search the brand knowledge base

search_knowledge
Read-onlyIdempotent

Semantic search over everything this business has taught its AI: website, uploaded documents, social posts, manual notes. Use it BEFORE answering anything factual about the business (prices, policies, opening hours, how a product works) instead of guessing. Each passage has its source and addedAt: when two contradict, the newest rules (the assistant does the same); remove the outdated one with delete_knowledge_source, or teach the new rule with teach_knowledge and replaces.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many passages (default 5).
queryYesWhat you want to know.
workspaceIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond readOnlyHint/idempotentHint, it discloses a real behavioral rule: when two passages contradict, the newest wins, mirroring what the assistant itself does. That is non-obvious resolution logic an agent would otherwise have to infer. It stops short of describing ranking, scoring, or what an empty result means.

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?

Front-loaded with purpose, then the usage trigger, then the conflict-resolution policy, with no filler sentences. The final sentence is dense (two tool names, a parameter name, and a precedence rule in one line) but every clause carries information.

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?

With no output schema, the description correctly compensates by explaining that each passage exposes `source` and `addedAt` and what to do with that metadata. For a simple 3-parameter read tool this is nearly complete; only the unlabeled `workspaceId` parameter leaves a gap.

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?

Annotations already cover the read-only, idempotent, open-world safety profile, so the bar is lower, and the description does add the useful fact that returned passages carry `source` and `addedAt`. However it says nothing about the three input parameters beyond what the schema states, and `workspaceId` is undocumented in both the schema and the description.

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?

States a specific verb and resource ('semantic search over everything this business has taught its AI') and enumerates the indexed corpus (website, documents, social posts, notes), which is exactly what an agent needs to predict retrieval behavior. It also names the sibling tools that handle the write side (delete_knowledge_source, teach_knowledge), so it is distinguishable from the rest of the knowledge family.

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 an explicit precondition ('Use it BEFORE answering anything factual about the business') with concrete example categories and a negative instruction ('instead of guessing'). It goes further by routing the conflict case to the correct alternatives: delete the stale passage with delete_knowledge_source, or teach the new rule via teach_knowledge with `replaces`.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources