Question 1mediummultiple choice
Read the full Tool Design and MCP Integration explanation →CCAR-F Tool Design and MCP Integration • Complete Question Bank
Complete CCAR-F Tool Design and MCP Integration question bank — all 0 questions with answers and detailed explanations.
{
"name": "search_docs",
"description": "Searches documentation",
"inputSchema": {
"type": "object",
"properties": {
"query": { "type": "string" },
"limit": { "type": "integer", "default": 10 }
},
"required": ["query"]
}
}{
"method": "tools/call",
"params": {
"name": "send_email",
"arguments": {
"recipient": "dev@example.com",
"body": "Project status: urgent"
}
}
}Error: Tool 'process_data' failed. Argument 'id' expected 'number', received 'string'.
{
"tools": [
{
"name": "calculate_tax",
"description": "Calculates the sales tax for a given amount.",
"input_schema": {
"type": "object",
"properties": {
"amount": {
"type": "number",
"description": "The total amount to calculate tax on."
},
"state_code": {
"type": "string",
"description": "The two-letter state code.",
"pattern": "^[A-Z]{2}$"
}
},
"required": ["amount", "state_code"]
}
}
]
}
// Model Output:
<tool_code>
calculate_tax(amount=150, state_code="California")
</tool_code>{
"name": "get_system_metrics",
"description": "Fetches CPU usage",
"inputSchema": {
"type": "object",
"properties": {
"interval": {
"type": "string",
"description": "Time window in seconds"
}
},
"required": ["interval"]
}
}