Skip to content

fix: CloudBase MCP 工具参数设计不清晰且错误提示不具体#628

Open
binggg wants to merge 1 commit intomainfrom
automation/attribution-issue-mo8yrp43-f3zmbp-cloudbase-mcp
Open

fix: CloudBase MCP 工具参数设计不清晰且错误提示不具体#628
binggg wants to merge 1 commit intomainfrom
automation/attribution-issue-mo8yrp43-f3zmbp-cloudbase-mcp

Conversation

@binggg
Copy link
Copy Markdown
Member

@binggg binggg commented Apr 28, 2026

Attribution issue

  • issueId: issue_mo8yrp43_f3zmbp
  • category: tool
  • canonicalTitle: CloudBase MCP 工具参数设计不清晰且错误提示不具体
  • representativeRun: atomic-js-cloudbase-function-detail/2026-04-21T18-34-27-iy1ret

Automation summary

**

  • root_cause: The CloudBase MCP tools were returning generic "400 invalid parameter value" errors from the CloudBase API without specifying which parameter was wrong or what the correct format should be. This made it difficult for users to understand and fix parameter issues.
  • changes:
  1. Added buildFunctionQueryErrorMessage function (mcp/src/tools/functions.ts:439-511): A new exported helper function that detects generic API errors and provides specific parameter guidance based on the action type (getFunctionDetail, listFunctionLogs, etc.). It shows:
  • Which parameters are required for the specific action
  • The actual input parameters received for debugging
  • Suggestions to use listFunctions when a function is not found
  1. Enhanced getFunctionDetail error handling (mcp/src/tools/functions.ts:649-692): Wrapped the API call in try-catch to use the enhanced error messages. Also improved the validation error to include usage examples.
  2. Improved tool parameter descriptions (mcp/src/tools/functions.ts:1606-1638): Enhanced the queryFunctions tool's action parameter description to list all available actions with their specific requirements, and clarifie

Changed files

  • mcp/src/tools/functions.test.ts
  • mcp/src/tools/functions.ts

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

...(errorCode ? { errorCode } : {}),
});

const withQueryEnvelope = async (
@binggg
Copy link
Copy Markdown
Member Author

binggg commented Apr 28, 2026

Attribution post-PR evaluation

  • visibility: internal identifiers, run ids, and private links are intentionally omitted
  • attempt: 1
  • eval_scope: primary_only
  • overall: FAILED
  • summary: at least one planned evaluation case failed
  • updated_at: 2026-04-28T17:04:02.794Z

Cases

  • [FAILED] — primary — evaluation failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant