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's schema/description had two gaps: (1) it said "某些 Action 需要携带 EnvId" which was too vague — in reality 22/32 tcb actions requireEnvIdas a mandatory parameter, causing models to omit it on first call; (2) it didn't clarify thatparamsmust be flat key-value pairs matching official API field names (e.g.,NamenotUserName,TypenotUserType,UserStatusnotStatus), and didn't warn against nesting params in sub-objects like{ "User": {...} }. The agent's first call used{ "User": { "UserName": "eval***user", "UserType": "internalUser", "Status": "ACTIVE" } }— wrong nesting AND wrong field names.mcp/src/tools/capi.tswith two layers of fixes:descriptionandparamsdescription to (a) state that tcb 绝大多数 Action requireEnvIdas mandatory, (b) clarify params must be flat key-value pairs, not nested sub-objects, (c) add aCreateUserexample with correct flat structure and field names (Name,Type,UserStatus), and (d) explicitly call out the common naming mistakes (NamevsUserName,TypevsUserType,UserStatusvsStatus).Changed files
mcp/src/tools/capi.ts