LibreChat

Calculator

Use the built-in Calculator tool in LibreChat agents

Calculator is a built-in agent tool for arithmetic and symbolic calculations. It does not require an API key or environment variable.

Setup

Add Calculator to an Agent

In LibreChat, select Agents, create or edit an agent, open the agent's Tools list, select Calculator, and save the agent.

Test It

Ask the agent to calculate something that benefits from a tool call:

Calculate 12345 * 6789 and show the result.

Troubleshooting

If Calculator is not visible in the Agent Builder, check whether your librechat.yaml uses includedTools or filteredTools.

How is this guide?