exampleTool
Generate personalized greeting messages by inputting a name and selecting a language. The tool on MCP Gemini Server uses structured input parameters to deliver tailored outputs for various use cases.
Instructions
An example tool that takes a name and returns a greeting message. Demonstrates the basic structure of an MCP tool using Zod for parameter definition.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "exampleTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Optional language code for the greeting (e.g., 'en', 'es', 'fr'). Defaults to 'en' if not provided or invalid. | |
| name | Yes | The name to include in the greeting message. Required, 1-50 characters. |