🔥 3-day streak
Cisco CCNP Automation AUTOCOR (350-901)42 / 136
Question 42 of 136

You are building an MCP server with Python FastMCP so an AI agent can retrieve live interface statistics from your IOS-XE devices via RESTCONF. You have written a Python function get_interface_stats(device_ip: str, interface: str) that returns a dictionary of counters. You want the AI agent to be able to invoke this function as a callable capability, with FastMCP automatically generating the input schema from the function's type hints and docstring. Which FastMCP construct should you apply to the function?

Reviewed for accuracy · Report an issueNext question