list_numbers
List all phone numbers provisioned on your account to find forgotten numbers or audit active ones.
Instructions
List all phone numbers currently provisioned on this account. Useful when the agent needs to find a number it forgot about, or audit what's active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- agentline_mcp/server.py:105-114 (handler)The 'list_numbers' MCP tool handler function. Calls _client_or_init().list_numbers() and returns a dict of number dataclasses. Decorated with @mcp.tool() for registration.
@mcp.tool() def list_numbers() -> dict: """List all phone numbers currently provisioned on this account. Useful when the agent needs to find a number it forgot about, or audit what's active. """ try: numbers = _client_or_init().list_numbers() return {"numbers": [asdict(n) for n in numbers]} except AgentlineError as e: return {"error": str(e), "status_code": e.status_code} - agentline_mcp/server.py:105-105 (registration)The tool is registered via the @mcp.tool() decorator on the list_numbers function (line 105). The FastMCP instance 'mcp' is created on line 47.
@mcp.tool()