account_health
Validate credentials, check environment and write mode, and diagnose authentication failures to ensure your Microsoft Ads session is ready for use.
Instructions
Validate credentials and report the environment and write mode.
Call this first. read_only tells you whether write tools are available this
session; environment is production or sandbox. auth_state discriminates why
auth failed (e.g. no_token vs token_rejected); branch on needs_interactive_auth
rather than the message string.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "account_health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| message | Yes | ||
| read_only | Yes | ||
| user_name | No | ||
| account_id | No | ||
| auth_state | No | ok | |
| customer_id | No | ||
| environment | Yes | ||
| needs_interactive_auth | No |