sympy_dirichlet_eta
Compute the Dirichlet eta function for a given complex argument. Returns symbolic result using SymPy's implementation.
Instructions
Dirichlet eta function.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| s | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/mcp_sympy/tools.py:1432-1435 (handler)The tool handler function for 'sympy_dirichlet_eta'. It takes a string expression, sympifies it, and returns the Dirichlet eta function result as a string.
@mcp.tool() def sympy_dirichlet_eta(s: str) -> str: """Dirichlet eta function.""" return str(dirichlet_eta(_sympify(s))) - src/mcp_sympy/tools.py:114-116 (helper)The _sympify helper function converts string expressions to SymPy objects, used by the handler.
def _sympify(expr: str) -> sympy.Basic: """Convert string expression to SymPy object.""" return sympy.sympify(expr) - src/mcp_sympy/tools.py:119-119 (registration)The FastMCP instance used as the decorator @mcp.tool() which registers sympy_dirichlet_eta as an MCP tool.
mcp = fastmcp.FastMCP("mcp-sympy") - src/mcp_sympy/tools.py:60-60 (helper)Import of dirichlet_eta from sympy, used by the handler function.
dirichlet_eta,