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
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to convert to uppercase |
Implementation Reference
- src/index.ts:124-133 (handler)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'], }, },
- src/index.ts:47-56 (schema)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'], },
- src/index.ts:13-18 (helper)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; };