Info / Tool calls / google:ds_python_interpreter

google:ds_python_interpreter

Use Calculator Tools MCP for a public URL you own

The short answer

google:ds_python_interpreter runs Python inside Gemini. The result is text in that chat. Use Calculator Tools when other people should open the calculator without Gemini. MCP calls webappCreate and returns a public URL.

A Python printout is not a hosted app. The page is.

What this call does

A public Gemini prompt copy declares google:ds_python_interpreter as a Python environment with data-science packages. The parameter is code. The response field shown there is result. The description says it cannot install more libraries.

People use this call for math, tables, and charts. The chart and the number stay in the Gemini session. Reload the chat later and you are back in Gemini's product.

What Calculator Tools does

Calculator Tools publishes the calculator as HTML, CSS, and JavaScript on your account. Visitors do not need a Gemini login.

Files live in one directory. Typical files are index.html plus CSS, JavaScript, or JSON.

You stay the owner. Remix can copy a public app on this site.

Free accounts can publish 3 apps. Pro ($5.99/month) raises the limit to 25.

How to use MCP for this job

Keep google:ds_python_interpreter when you need Gemini to compute once and show the number. Publish here when the same formula should be a form on the web.

Add https://api.calculator.tools/mcp/ in Cursor, Claude, or ChatGPT. Sign in with Google. Click Approve.

Ask the assistant to turn the formula into a hosted calculator. It calls webappCreate, then webappfileCreate. You can also paste the idea into Create.

Grok has a similar sandbox under code_interpreter and code_execution. The publish step is still this host.

Limits

Calculator Tools does not run Gemini's Python tool. It does not include those data-science packages.

The hosted page runs in the browser. Heavy numeric work may still belong in the interpreter. Check every formula before you share the URL.

Next step

Open Create or connect MCP. The first 3 apps are free.

Sources

Ready to publish a public app you own?

Create an app Connect MCP


Other tool calls