LearnNewsExamplesServices
Frontmatter
id7883
titleEnhance query_documents tool with limit parameter and updated JSDoc
stateClosed
labels
enhancementai
assigneestobiu
createdAtNov 23, 2025, 7:22 PM
updatedAtNov 23, 2025, 7:26 PM
githubUrlhttps://github.com/neomjs/neo/issues/7883
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 23, 2025, 7:26 PM

Enhance query_documents tool with limit parameter and updated JSDoc

Closed v11.10.0 enhancementai
tobiu
tobiu commented on Nov 23, 2025, 7:22 PM

Objective: Enhance the query_documents tool to allow users to specify the maximum number of results returned and improve documentation accuracy.

Tasks:

  1. Add limit parameter:

    • Update ai/mcp/server/knowledge-base/openapi.yaml to include an optional limit integer property in the QueryRequest schema.
    • Update ai/mcp/server/knowledge-base/services/QueryService.mjs to accept limit in the queryDocuments method.
    • Use the provided limit (defaulting to 25) to slice the final sorted results.
  2. Update JSDoc:

    • Update the JSDoc for queryDocuments in ai/mcp/server/knowledge-base/services/QueryService.mjs to explicitly list the supported values for the type parameter (all, blog, guide, src, example, ticket, release), matching the OpenAPI specification.
tobiu assigned to @tobiu on Nov 23, 2025, 7:22 PM
tobiu added the enhancement label on Nov 23, 2025, 7:22 PM
tobiu added the ai label on Nov 23, 2025, 7:22 PM
tobiu referenced in commit 4009089 - "Enhance query_documents tool with limit parameter and updated JSDoc #7883" on Nov 23, 2025, 7:24 PM
tobiu closed this issue on Nov 23, 2025, 7:26 PM