Skip to main content
Glama

kognyt_sf_doc_search

Searches Salesforce official documentation using semantic search and returns relevant chunks for RAG context, helping answer questions about Apex, LWC, SOQL, and platform features.

Instructions

Search Salesforce official documentation using semantic search. Returns relevant documentation chunks for RAG context. Useful for answering questions about Apex, LWC, SOQL, or any Salesforce platform feature. Powered by Kognyt.

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

Input Schema

NameRequiredDescriptionDefault
queryYesNatural language search query
topicsNoTopic filters (e.g., ["soql", "triggers", "bulkification"])
release_idNoRelease identifier (e.g., "spring-26"). If not provided, uses the current release.
max_resultsNoMaximum number of results (default: 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden; it does disclose the read-style behavior and nature of the return value ('documentation chunks for RAG context'). It says nothing about permissions, rate limits, result freshness, or ordering, which are the remaining behavioral gaps 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with the core action and output, then the use case, in three tight sentences. The trailing 'Powered by Kognyt' is pure filler with no decision value.

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 straightforward retrieval tool with a fully documented schema and no output schema, the description covers what it does, what it returns, and when it is applicable. It could be stronger by noting release scoping behavior or how results are ranked, but nothing essential to invoking it is missing.

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 100%, so all four parameters (query, topics, release_id, max_results) are already documented with examples and defaults. The description adds no syntax or interpretation guidance beyond the schema, so the baseline 3 applies.

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 Salesforce official documentation using semantic search') and clarifies the output shape ('documentation chunks for RAG context'). It does not explicitly distinguish itself from siblings like kognyt_sf_constraints or kognyt_sf_releases, so it stops short of a 5.

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

Usage Guidelines4/5

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

It gives a clear use case — answering questions about Apex, LWC, SOQL, or any platform feature — which tells an agent when to reach for it. It names no exclusions or alternatives, so an agent must infer whether to prefer this over the constraints or releases tools.

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