Why are custom labels missing in MCP tool calls?
Context
Section titled “Context”Custom labels are not visible in MCP tool calls, which affects the ability to create custom charts using these labels.
Answer
Section titled “Answer”Ensure you are on the latest release version and not using a beta version. Follow these steps to work with custom labels:
- Call
labels_listorproject_infoto view all available label values. - Update the test status displayed on the chart by using
tests_updatewith thelinkparameter to remove the old label and add the new one.
Example payload:
"link": [ { "action": "remove", "type": "label", "value": "automationCandidateStatus:to-do" }, { "action": "add", "type": "label", "value": "automationCandidateStatus:done" }]If this doesn’t work
Section titled “If this doesn’t work”Strengthen the instructions for the agent, as this is a non-standard use case and the agent may not infer what needs to be done even though custom labels are supported.