Case Conversion Utilities

To Upper Case

Converts any text string to UPPERCASE format through MCP or REST API at `/v1/case/upper`. Perfect for standardizing user input, creating constants, or formatting headers. Works with Unicode characters and preserves spacing. Cursor and other MCP-enabled editors can call this deterministic function to ensure consistent text transformation without hallucination.

API Endpoint

GET /v1/case/upper

Code Examples

curl "https://tinyfn.io/v1/case/upper" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/case/upper', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/case/upper',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's case conversion tools:

{
  "mcpServers": {
    "tinyfn-case": {
      "url": "https://tinyfn.io/mcp/case",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I convert text to uppercase using MCP in Cursor?

Call the 'To Upper Case' tool with your text string as input. The MCP integration handles the conversion deterministically, returning properly formatted UPPERCASE text.

Does uppercase conversion work with special characters and Unicode?

Yes, it handles Unicode characters correctly, converting accented letters (é→É) and international characters while preserving numbers, spaces, and punctuation marks.

What's the REST API endpoint for uppercase conversion?

Send a GET request to `/v1/case/upper` with your text parameter. Returns the uppercased string in JSON format.

Can I use this for converting variable names to constants?

Absolutely. Convert 'myVariableName' to 'MYVARIABLENAME' for constant declarations, though you may need separate word separation for 'MY_VARIABLE_NAME' style.

What happens with mixed content like 'Hello123World'?

Numbers and special characters remain unchanged, only letters convert: 'Hello123World' becomes 'HELLO123WORLD'.

Try To Upper Case Now

Get your free API key and start using To Upper Case in seconds.

Get Free API Key