Added an mcp server in agent builder, the problem is the output schema from the tool call is not respected - I have defined the output schema and return the results as expected for reference
outputSchema: {
name: z.string().describe("The name of the speaker"),
jobTitle: z.string().describe("The job title of the speaker"),
company: z.string().describe("The company of the speaker"),
},
and this is what is returned from the mcp server
{
content: [
{
type: "text",
text: JSON.stringify(HARDCODED_SPEAKER, null, 2)
}
],
structuredContent: HARDCODED_SPEAKER,
toolResult: HARDCODED_SPEAKER
};
hardcoded_speaker is an object - Everything works fine if I add an additional agent and extract the values of hardcoded speaker — MCP node –> Agent
The core issue is {{input.results}} is not typed