# compute_payroll

PAID ($0.10). Gross-to-net take-home pay for Nigeria or Kenya: applies PAYE (on the verified brackets) plus the statutory employee deductions (Nigeria: pension/NHF/NHIS; Kenya: NSSF/SHIF/Affordable Housing Levy) and reliefs, returning net pay with full workings, per-contribution citations and DISCLOSED assumptions. Nigeria's pension base needs pay composition — pass basic/housing/transport for an exact figure, or a market-convention 40/30/10 split is assumed and disclosed. Pass api_key if you have one; otherwise the response explains how to pay via x402.

Agent View of the PolicyLayer registry record for `compute_payroll`. HTML page: https://policylayer.com/tools/dev-afriref-reference-data/compute-payroll

## Facts

- Tool: `compute_payroll`
- Server: Reference Data (`https://afriref.dev/mcp`) — https://policylayer.com/tools/dev-afriref-reference-data.md
- Homepage: https://github.com/https://afriref.dev/mcp
- Risk category: Read (Low risk)
- Registry record: grade D, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 12 (2 required)
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `basic` | number | no | Nigeria: basic pay component |
| `gross` | number | yes | Gross pay in local currency |
| `period` | string | no | Period the gross covers (default month) |
| `sector` | string | no | Nigeria: public applies NHF; private (default) sets NHF 0 |
| `api_key` | string | no | API key (bypasses x402; metered for invoicing) |
| `country` | string | yes | Payroll is supported for Nigeria (ng) and Kenya (ke) |
| `housing` | number | no | Nigeria: housing allowance |
| `transport` | number | no | Nigeria: transport allowance |
| `annual_rent` | number | no | Nigeria: annual rent paid (unlocks rent relief) |
| `nhis_premium` | number | no | Nigeria: NHIS employee premium if deducted |
| `pensionable_pay` | number | no | Kenya: pensionable pay for NSSF tiers |
| `insurance_premium` | number | no | Kenya: insurance premium for 15% relief |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "compute_payroll",
    "arguments": {
      "gross": 0,
      "country": "<country>"
    }
  }
}
```

## Why compute_payroll is rated Low

Even though compute_payroll only reads data, uncontrolled read access leaks sensitive information and racks up API costs: an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.

Risk signals: Handles credentials or secrets (api_key) · High parameter count (12 properties)

## Use case

AI agents call compute_payroll to retrieve information from Reference Data without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Reference Data:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "compute_payroll": {}
  }
}
```

## Other tools on Reference Data (10)

- `check_minimum_wage` — Read — https://policylayer.com/tools/dev-afriref-reference-data/check-minimum-wage.md
- `compute_income_tax` — Read — https://policylayer.com/tools/dev-afriref-reference-data/compute-income-tax.md
- `count_working_days` — Read — https://policylayer.com/tools/dev-afriref-reference-data/count-working-days.md
- `get_public_holidays` — Read — https://policylayer.com/tools/dev-afriref-reference-data/get-public-holidays.md
- `get_series` — Read — https://policylayer.com/tools/dev-afriref-reference-data/get-series.md
- `get_series_history` — Read — https://policylayer.com/tools/dev-afriref-reference-data/get-series-history.md
- `get_snapshot` — Read — https://policylayer.com/tools/dev-afriref-reference-data/get-snapshot.md
- `list_series` — Read — https://policylayer.com/tools/dev-afriref-reference-data/list-series.md
- `settlement_date` — Read — https://policylayer.com/tools/dev-afriref-reference-data/settlement-date.md
- `compute_vat` — Write — https://policylayer.com/tools/dev-afriref-reference-data/compute-vat.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=dev-afriref-reference-data · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dev-afriref-reference-data
