Tools

The Klever Connect MCP server exposes 6 tools (in MCP terminology: functions the assistant can call). The server is read-only — none of these tools mutate the knowledge base.

Tool list

ToolDescription
query_contextSearch the knowledge base with structured filters and BM25-ranked full-text search.
get_contextRetrieve the FULL content of a single knowledge entry by ID.
find_similarFind entries related to a known entry by comparing tags and type.
get_knowledge_statsHigh-level overview: total entries, breakdown by type, top tags, categories.
enhance_with_contextAugment a natural-language question with the 5 most relevant entries, formatted as injectable context.
search_documentationNatural-language documentation search with BM25 ranking, returns formatted markdown.

query_context

Search the knowledge base with structured filters and BM25-ranked full-text search. Filter by entry type, tag, or category.

Parameters

NameTypeRequiredDescription
querystringyesNatural-language search query.
typestringnoFilter by entry type (e.g. code_example, best_practice, error_pattern).
tagstringnoFilter by a single tag.
categorystringnoFilter by category (e.g. api-reference, examples).
limitnumbernoMax results to return (default 10).

Example call

{
  "name": "query_context",
  "arguments": {
    "query": "sign transaction with web extension wallet",
    "type": "code_example",
    "limit": 5
  }
}

get_context

Retrieve the full content of a single knowledge entry by its ID.

Parameters

NameTypeRequiredDescription
idstringyesThe entry ID (returned by query_context or search_documentation).

Example call

{
  "name": "get_context",
  "arguments": { "id": "api-reference/connect-wallet/signTransaction" }
}

find_similar

Find entries related to a known entry by comparing tags and type. Useful for "show me more like this".

Parameters

NameTypeRequiredDescription
idstringyesThe reference entry ID.
limitnumbernoMax results (default 5).

Example call

{
  "name": "find_similar",
  "arguments": { "id": "api-reference/connect-wallet/signTransaction", "limit": 5 }
}

get_knowledge_stats

High-level overview of what's in the knowledge base. No parameters.

Returns an object with:

  • total — total entries
  • byType — counts grouped by entry type
  • byCategory — counts grouped by category
  • topTags — most-frequent tags

Example call

{
  "name": "get_knowledge_stats",
  "arguments": {}
}

enhance_with_context

Take a natural-language question and return the 5 most relevant knowledge entries, formatted as injectable context. Use this before asking the LLM to generate code — the response is meant to be pasted into the LLM's context window.

Parameters

NameTypeRequiredDescription
querystringyesThe user's natural-language question.

Example call

{
  "name": "enhance_with_context",
  "arguments": { "query": "How do I claim KFI rewards from a staking pool?" }
}

search_documentation

Natural-language documentation search with BM25 ranking. Returns formatted markdown — the most assistant-friendly tool for "show me how to do X".

Parameters

NameTypeRequiredDescription
querystringyesNatural-language documentation query.
limitnumbernoMax results to return (default 5).

Example call

{
  "name": "search_documentation",
  "arguments": { "query": "how to send a KLV transfer with the connect SDK", "limit": 5 }
}

When to use which tool

  • Looking something up to readsearch_documentation (markdown-formatted, optimized for the assistant to summarize).
  • Filtering by type/tag/categoryquery_context (structured filters).
  • Reading one entry in fullget_context (after you have the ID).
  • Discovering related entriesfind_similar.
  • Pre-loading the LLM's context before code generationenhance_with_context.
  • Auditing the knowledge baseget_knowledge_stats.

Next steps

Was this page helpful?