fix: MCP queryFunctions 返回结构嵌套导致 AI 解析困难,且分页参数未在工具描述中说明#625
Open
fix: MCP queryFunctions 返回结构嵌套导致 AI 解析困难,且分页参数未在工具描述中说明#625
Conversation
…(issue_moisvjgj_y4z83q)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Member
Author
Attribution post-PR evaluation
Cases
|
Member
Author
|
doc/prompts/auth-web.mdx 这个不要随意更改,不属于本词修改的范围 另外 函数的描述我记得,我统一都加了 CloudBase 云函数的前缀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attribution issue
Automation summary
SUMMARY:
queryFunctionstool's pagination parameters (limitandoffset) were not documented in the tool description, making it difficult for AI to discover and use pagination functionality when listing functions or layers.queryFunctionstool inmcp/src/tools/functions.ts(lines 1414-1426):listFunctions,listLayers)limitparameter as "分页数量,默认返回所有"offsetparameter as "分页偏移,从 0 开始"{ content: [{ type: "text", text: JSON }] }) which is the expected format for MCP tools. The enveloChanged files
doc/prompts/auth-web.mdxmcp/src/tools/functions.ts