getModelInfo
Retrieve details about the Gemini AI model configuration and capabilities to understand its parameters and functionality.
Instructions
Get information about the Gemini model being used
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:310-322 (registration)Registers the 'getModelInfo' tool using server.tool, providing name, description, empty schema, and inline handler function.server.tool( "getModelInfo", "Get information about the Gemini model being used", {}, async () => { return { content: [{ type: "text", text: `Using Gemini 2.5 Pro Experimental (${betaModelName})\n\nThis is Google's latest experimental model from the beta API, with:\n- 1,048,576 token input limit\n- 65,536 token output limit\n- Enhanced reasoning capabilities\n- Improved instruction following` }] }; } );
- src/index.ts:314-321 (handler)The handler function for 'getModelInfo' tool, which returns static information about the Gemini model being used.async () => { return { content: [{ type: "text", text: `Using Gemini 2.5 Pro Experimental (${betaModelName})\n\nThis is Google's latest experimental model from the beta API, with:\n- 1,048,576 token input limit\n- 65,536 token output limit\n- Enhanced reasoning capabilities\n- Improved instruction following` }] }; }