MCP Server tools don't accept response from custom Now Assist skills

atharvsubhe
Tera Contributor

I am trying to setup an MCP Server to expose a Now Assist Skill which returns an LLM response. The skill is configured correctly, and it returns the response as follows: 

{
  "provider": "Now LLM",
  "response": {
    "model_output": "..."
  },
  "error": null,
  "errorCode": null,
  "status": "success"
}

Since MCP Server expects the tool to only return a single output and not a JSON object, it is not able to populate the tool's response. The MCP Server's tools response JSON is as follows: 

{
  "content": [
    {
      "type": "text",
      "text": "<final result>"
    }
  ],
  "isError": false
}


Is there a way to map the model output to the tool response's text field or just have the skill return the model output and none of the other fields? 

The current MCP Server tools only allow Now Assist Skills to be configured. Since each skill is always wrapped by an LLM response, the MCP Server will never receive the tool response correctly. How are these skills supposed to work as MCP Tools? Am I missing something? 

0 REPLIES 0