Conversation
…生幻觉函数名 (issue_mojhf34d_9x4fl1)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3927b58e48
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| For `listFunctions`, `listFunctionLogs`, and other list operations: | ||
|
|
||
| - Use `limit` and `offset` parameters for pagination | ||
| - The response includes `totalCount` indicating total available records | ||
| - When `functions.length < totalCount`, there are more records to fetch |
There was a problem hiding this comment.
Fix incorrect pagination guidance for listFunctionLogs
The new pagination section states that listFunctionLogs responses include totalCount and can be checked with functions.length < totalCount, but queryFunctions(action="listFunctionLogs") currently returns logs, requestId, and raw without any top-level totalCount field in data (mcp/src/tools/functions.ts, case "listFunctionLogs"). Following this guidance will make agents read non-existent fields and can cause broken or looping pagination logic for log queries.
Useful? React with 👍 / 👎.
Attribution post-PR evaluation
Cases
|
Attribution issue
Automation summary
cloud-functionsskill documentation did not explain the MCP tool response format, including how to parse the response envelope and handle pagination. This led to AI confusion when processingqueryFunctions(action="listFunctions")results, especially when merging paginated results.config/source/skills/cloud-functions/SKILL.mdthat:{ success, data, message })result.content[0].text→ JSON parse →response.data)listFunctionswith examples showing how to uselimit,offset, andtotalCountsuccessisfalseThe changes were synced to the mirror directory (
config/.claude/skills/) and the prompts documentation (doc/prompts/cloud-functions.mdx) was regenerated.Changed files
config/.claude/skills/cloud-functions/SKILL.mdconfig/source/skills/cloud-functions/SKILL.mddoc/prompts/auth-web.mdxdoc/prompts/cloud-functions.mdx