Skip to main content
Glama
srafi26

MCP Server

by srafi26

uppercase

Convert any text to uppercase with this utility tool from MCP Server. Simply input the desired text, and it transforms into all capital letters instantly.

Instructions

Convert text to uppercase

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to convert to uppercase

Implementation Reference

  • Handler function for the 'uppercase' tool. Validates the input 'text' parameter and returns the uppercase version of the text.
    case 'uppercase': const text = validateString(args.text, 'text'); return { content: [ { type: 'text', text: text.toUpperCase(), } as TextContent, ], };
  • src/index.ts:44-57 (registration)
    Tool registration in the tools array, including name, description, and input schema definition for the 'uppercase' tool.
    { name: 'uppercase', description: 'Convert text to uppercase', inputSchema: { type: 'object', properties: { text: { type: 'string', description: 'The text to convert to uppercase', }, }, required: ['text'], }, },
  • Input schema definition specifying the 'text' parameter as a required string.
    inputSchema: { type: 'object', properties: { text: { type: 'string', description: 'The text to convert to uppercase', }, }, required: ['text'], },
  • Helper function used to validate string inputs, called in the uppercase handler.
    const validateString = (value: unknown, fieldName: string): string => { if (typeof value !== 'string') { throw new Error(`${fieldName} must be a string`); } return value; };

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/srafi26/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server