Configurations
Tool Naming
FastAPI-MCP uses the operation_id
from your FastAPI routes as the MCP tool names. When you don’t specify an operation_id
, FastAPI auto-generates one, but these can be cryptic.
Compare these two endpoint definitions:
For clearer, more intuitive tool names, we recommend adding explicit operation_id
parameters to your FastAPI route definitions.
To find out more, read FastAPI’s official docs about advanced config of path operations.