Frontmatter
| id | 7883 |
| title | Enhance query_documents tool with limit parameter and updated JSDoc |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Nov 23, 2025, 7:22 PM |
| updatedAt | Nov 23, 2025, 7:26 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7883 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 23, 2025, 7:26 PM |
Objective: Enhance the
query_documentstool to allow users to specify the maximum number of results returned and improve documentation accuracy.Tasks:
Add
limitparameter:ai/mcp/server/knowledge-base/openapi.yamlto include an optionallimitinteger property in theQueryRequestschema.ai/mcp/server/knowledge-base/services/QueryService.mjsto acceptlimitin thequeryDocumentsmethod.limit(defaulting to 25) to slice the final sorted results.Update JSDoc:
queryDocumentsinai/mcp/server/knowledge-base/services/QueryService.mjsto explicitly list the supported values for thetypeparameter (all, blog, guide, src, example, ticket, release), matching the OpenAPI specification.