# POST /agent-ops/metrics

**Resource:** [Agent Ops](./agent-ops.md)  
**MCP tool:** `upsert_agent_metrics`  
**Scopes:** `agent-ops:write`  
**Write operation:** yes

Upsert a metric row.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `agent_name` | body | string | yes |  |
| `run_date` | body | string | yes |  |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/agent-ops/metrics"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"agent_name":"...","run_date":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`