# Microgram: calculate-compute-signal-trend

`station__algovigilance__microgram-calculate-compute-signal-trend` · native (always callable) · domain `algovigilance` · pv-relevance `pv-core`

Detect trend direction in time-series safety signal scores using linear regression. Reports slope, R-squared, and whether the signal is increasing, decreasing, or stable.

## Agent metadata

- `idempotent`: true
- `read_only`: true
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `observations` *object* (required) — Array of {period, score} objects representing signal scores over time (at least 2)

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__algovigilance__microgram-calculate-compute-signal-trend",
    "arguments": {
      "observations": {}
    }
  }
}
```

## Related

- [/tools](/tools) — all 7718 tools
- [/tools/algovigilance__microgram-calculate-compute-signal-trend](/tools/algovigilance__microgram-calculate-compute-signal-trend) — HTML page
- [/tools/algovigilance__microgram-calculate-compute-signal-trend/json](/tools/algovigilance__microgram-calculate-compute-signal-trend/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
