Skip to content

Commit 53e85f3

Browse files
committed
Allows tool name and description to be configured, seems like it matters a lot
1 parent dded448 commit 53e85f3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

inkeep_mcp_server/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ async def make_inkeep_rag_request(query: str) -> InkeepRAGResponse:
4848

4949

5050
@mcp.tool(
51-
name="search-product-content",
52-
description="Retrieve product content (docs, release notes, help center articles, etc.) about your product. Use when a task requires documentation or knowledge about the product that the user is a member of. Typical users include technical writers, content marketers,support agents, and developers who may be doing a task that requires knowledge about their own product, like writing a new blog post, modifying existing docs, creating examples, etc. The query can be framed as a conversational question about the product.",
51+
name=inkeep_settings.INKEEP_MCP_TOOL_NAME,
52+
description=inkeep_settings.INKEEP_MCP_TOOL_DESCRIPTION,
5353
)
5454
async def retrieve_product_docs(query: str) -> InkeepRAGResponse:
5555
return await make_inkeep_rag_request(query)

inkeep_mcp_server/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ class InkeepSettings(BaseSettings):
55
INKEEP_API_BASE_URL: str
66
INKEEP_API_KEY: str
77
INKEEP_API_MODEL: str
8+
INKEEP_MCP_TOOL_NAME: str = "search-product-content"
9+
INKEEP_MCP_TOOL_DESCRIPTION: str = (
10+
"Retrieve product content (docs, release notes, help center articles, etc.) about your product. Use when a task requires documentation or knowledge about the product that the user is a member of. Typical users include technical writers, content marketers,support agents, and developers who may be doing a task that requires knowledge about their own product, like writing a new blog post, modifying existing docs, creating examples, etc. The query can be framed as a conversational question about the product."
11+
)
812

913
model_config = SettingsConfigDict()
1014

0 commit comments

Comments
 (0)