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.
Input Schema
TableJSON 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: