echo
Test JIRA issue formatting by echoing input text with optional case transformation to verify markdown-to-ADF conversion accuracy.
Instructions
Echo back the input text with optional case transformation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| transform | No |
Implementation Reference
- mcp_jira/tools/echo.py:6-28 (handler)Core handler function implementing the echo tool logic: echoes input text with optional upper/lower case transformation and returns MCP TextContent.def echo(text: str, transform: Optional[str] = None) -> types.TextContent: """ Echo the input text back to the caller with optional case transformation. Args: text: The text to echo back transform: Optional case transformation ('upper' or 'lower') Returns: TextContent: The transformed text as MCP TextContent """ if transform == "upper": result = text.upper() elif transform == "lower": result = text.lower() else: result = text return types.TextContent( type="text", text=result, format="text/plain" )
- mcp_jira/server/app.py:43-49 (registration)Registration of the 'echo' tool via @mcp_server.tool decorator. Includes a thin wrapper function that delegates to the core echo implementation.@mcp_server.tool( name="echo", description="Echo back the input text with optional case transformation", ) def echo_tool(text: str, transform: Optional[str] = None) -> types.TextContent: """Wrapper around the echo tool implementation""" return echo(text, transform)