echo
Transform and return input text with case modifications using this tool. Ideal for processing and standardizing text data within the MCP JIRA Server environment.
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 for the 'echo' tool. Processes input text with optional case transformation (upper, lower, or none) and returns formatted 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)MCP tool registration for 'echo', using a thin wrapper 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)