Case Conversion MCP Tools for AI Agents

Your code generation agent converts "get user profile" to camelCase and produces "getUserprofile" instead of "getUserProfile". Case conversion has specific word boundary rules that vary by convention. These tools apply them consistently.

All Case Tools (20)

Your agent gets access to 20 case tools via the /mcp/case/ endpoint. Here's the complete list:

ToolDescription
case/camelTo Camel Case
case/pascalTo Pascal Case
case/snakeTo Snake Case
case/screaming-snakeTo Screaming Snake Case
case/kebabTo Kebab Case
case/trainTo Train Case
case/titleTo Title Case
case/sentenceTo Sentence Case
case/upperTo Upper Case
case/lowerTo Lower Case
case/swapSwap Case
case/capitalizeCapitalize Text
case/dotTo Dot Case
case/pathTo Path Case
case/constantTo Constant Case
case/headerTo Header Case
case/alternatingTo Alternating Case
case/inverseInverse Case
case/detectDetect Case
case/convert-allConvert All Cases

Agent Scenarios

Here's how real agents use these tools:

1. Code generation agent

A coding assistant converts natural language function descriptions to proper camelCase function names.

Tool Call: case/camel
{ "text": "get user profile data" }

2. API adapter agent

An integration agent converts between snake_case API responses and camelCase frontend conventions.

Tool Call: case/snake
{ "text": "getUserProfile" }

3. Documentation agent

A docs agent converts code identifiers to Title Case for human-readable documentation headers.

Tool Call: case/title
{ "text": "user_account_settings" }

MCP Setup

Add case tools to your agent in under 2 minutes. Choose your client:

Claude Desktop / Claude Code

Add this to your MCP config:

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

Cursor

Go to Settings > MCP and add a new server:

  • Type: SSE
  • URL: https://api.tinyfn.io/mcp/case/sse
  • Headers: X-API-Key: your-api-key

Tip: Use the category-specific endpoint (/mcp/case/) for the best experience. The all-in-one endpoint (/mcp/all/) works too but has 500+ tools which some clients handle less efficiently.

When to Use These Tools

Use case MCP tools when your agent needs to:

  • Guarantee correctness — when wrong answers have real consequences
  • Process user data — when you're operating on actual user input, not hypothetical examples
  • Maintain consistency — when the same input must always produce the same output

You don't need these tools for casual conversation or rough estimates. Use them when precision matters.

Ready to add case tools to your agent?

Get Free API Key 100 requests/month free. No credit card required.

Frequently Asked Questions

What case conversions does TinyFn support?

TinyFn supports camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, UPPER CASE, and lower case conversions.

How are word boundaries detected?

TinyFn detects word boundaries from spaces, underscores, hyphens, and camelCase transitions (lowercase→uppercase). This means it can convert from any case format to any other.

Can TinyFn handle acronyms?

Yes. TinyFn handles common acronym patterns, preserving proper casing for sequences like "HTML", "API", and "URL" in conversions.

Ready to try TinyFn?

Get your free API key and start building in minutes.

Get Free API Key