compara
Generate a mind map to visually compare two topics, helping identify similarities and differences for better understanding and organization.
Instructions
Gera um mapa mental comparando dois temas.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tema1": "<tema1>",
"tema2": "<tema2>"
},
"name": "compara"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tema1 | Yes | ||
| tema2 | Yes |
Implementation Reference
- server.py:9-18 (handler)The main handler function for the 'compara' tool. It takes two string parameters (tema1 and tema2) and returns a formatted string representing a mind map comparison between the two themes, listing key topics like definitions, characteristics, pros/cons, applications, and differences/similarities.
def compara(tema1: str, tema2: str) -> str: """Gera um mapa mental comparando dois temas.""" return ( f"Comparação entre {tema1} e {tema2}, focando somente nos tópicos abaixo:\n" f"- Definições de {tema1} e {tema2}\n" f"- Características principais\n" f"- Vantagens e desvantagens\n" f"- Aplicações práticas\n" f"- Diferenças e semelhanças" ) - server.py:8-8 (registration)The decorator that registers the 'compara' function as an MCP tool named 'compara'.
@mcp.tool(name="compara") - server.py:9-9 (schema)The function signature defining the input schema (two string parameters: tema1, tema2) and output type (str). The docstring provides additional description.
def compara(tema1: str, tema2: str) -> str: