Shawn Talbert
09/17/2025, 9:36 PMoutputSchema
from the tools definition JSON? Has anyone confirmed that using a client that reveals the raw MCP tools/list
command output? (thisis based on my light experimentation with the standard claud.ai chat)Mohammad Sharaf Ali
09/18/2025, 2:45 PM{
"jsonrpc": "2.0",
"id": "{{$guid}}",
"method": "tools/call",
"params": {
"name": "runCustomSuiteQL",
"arguments": {
"sqlQuery": "SELECT entityid, firstname, lastname FROM customer WHERE 1=1 AND rownum < 11"
}
}
}
Shawn Talbert
09/18/2025, 2:47 PMinputSchema
not the outputSchema
. Not sure I can trust it but I went on to ask if it sees the outputSchema (which I indeed have defined for all my tools) and it said it cannotShawn Talbert
09/18/2025, 2:48 PMoutputSchema
but claude doesn't? In any case, I consider the output schema to be pretty important to help an AI reliably understand the response from a custom toolMohammad Sharaf Ali
09/21/2025, 3:36 PMShawn Talbert
09/23/2025, 3:35 PMhelloWorld
tool that returns a message
{
"name": "helloWorld",
"description": "Returns a friendly greeting.",
"inputSchema": {
"type": "object",
"properties": {
"foo": {
"type": "string",
"description": "Optional input string to include in the greeting."
}
},
"required": []
},
"outputSchema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "The greeting message."
}
},
"required": ["message"]
}
},
Shawn Talbert
09/23/2025, 3:39 PMMohammad Sharaf Ali
09/25/2025, 8:17 AMMohammad Sharaf Ali
09/25/2025, 8:17 AM{
"tools": [
{
"name": "add",
"description": "Add two numbers together",
"inputSchema": {
"type": "object",
"properties": {
"a": {
"type": "number",
"description": "First addend"
},
"b": {
"type": "number",
"description": "Second addend"
}
},
"required": [
"a",
"b"
],
"nullable": []
},
"outputSchema": {
"type": "object",
"properties": {
"result": {
"type": "number",
"description": "Value of adding the two input numbers"
},
"error": {
"type": "string",
"description": "Error message if execution fails"
}
},
"required": [
"result"
],
"nullable": [
"error"
]
},
"annotations": {
"title": "Add Numbers",
"readOnlyHint": true,
"idempotentHint": true,
"openWorldHint": false
}
}
]
}