Conversation
… 必填参数(EnvId),且参数命名约定不 (issue_mojd35i1_ptw5mr)
Member
Author
Attribution post-PR evaluation
Cases
|
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
callCloudApiMCP tool had two problems causing models to fail on first call when usingCreateUser: (1) It did not auto-injectEnvIdinto the params even though the environment ID was already available from the auth context, forcing the model to remember to include it manually; (2) The tool description did not clearly specify that params must be flat (not nested like{ "User": {...} }) and that parameter names are case-sensitive and must match the official API (e.g.,NamenotUserName,TypenotUserType,UserStatusnotStatus). The trace shows the agent usedUserName,UserType,Status, nested everything in aUserobject, and omittedEnvId.mcp/src/tools/capi.tswith two fixes: (1) Layer 2 - Auto-inject EnvId: Whenservice === 'tcb'and the action requiresEnvId(perTCB_ACTION_INDEX_MAP.requiredKeys) but the caller didn't include it, the tool now resolves the current environment ID viagetEnvId(cloudBaseOptions)and injects it automatically. This mirrors what other tools likeinvite-code.ts,cloudrun.ts, andpermissions.tsalready do. (2) Layer 1 - Improve tool description: Added explicit "重要Changed files
mcp/src/tools/capi.ts