# Compare Salary Across Countries — Obolus

> Use this when the user asks to compare salary, net income, tax burden, or social contributions across multiple countries. This is the default action for prompts like "compare a EUR 50,000 salary in Germany, Ireland, the United States, and…

- Key: `obolus-taxcompare`
- Type: Action (Read-only)
- Version: 0.0.2
- App: Obolus (`obolus`) — https://pipedream.com/apps/obolus.md
- This page (HTML): https://pipedream.com/apps/obolus/actions/taxcompare
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/obolus/actions/taxcompare/taxcompare.mjs

## Description

Use this when the user asks to compare salary, net income, tax burden, or social contributions across multiple countries. This is the default action for prompts like "compare a EUR 50,000 salary in Germany, Ireland, the United States, and Canada". Do not use Calculate Net Salary for multi-country comparisons unless the user asks for detailed payroll in one specific country. [See the documentation](https://www.obolusfinanz.de/en/developers)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `grossMode` | `string` | Yes | shared_gross compares one annual salary across every selected country. local_median_gross ignores Annual Gross Salary and compares country-specific editorial median salary benchmarks. |
| `annualGross` | `string` | No | Shared annual gross salary to compare across the selected countries, in major currency units, e.g. 60000 for EUR 60,000. Do not enter cents. Required for shared_gross; ignored for local_median_gross. |
| `taxYear` | `string` | Yes | Tax year for the cross-country comparison, e.g. 2026. |
| `currency` | `string` | Yes | Currency for the shared salary input and normalized comparison output, in lower-case ISO style. |
| `countries` | `string[]` | Yes | Two or more country codes to compare. Use this list whenever the prompt names multiple countries, e.g. DE, IE, US, CA. |
| `showAdvancedInputs` | `boolean` | No | Reveal broad comparison assumptions such as joint assessment, children, and raw JSON overrides. For detailed country-specific payroll fields, use Calculate Net Salary instead. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "obolus",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "obolus-taxcompare",
  arguments: {
    grossMode: "Gross Mode",
    annualGross: "Annual Gross Salary",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "obolus-taxcompare",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    obolus: { authProvisionId: "apn_xxxxxxx" },
    grossMode: "Gross Mode",
    annualGross: "Annual Gross Salary",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "obolus-taxcompare",
    "configured_props": {
      "obolus": { "authProvisionId": "apn_xxxxxxx" },
      "grossMode": "Gross Mode",
      "annualGross": "Annual Gross Salary"
    }
  }'
```

---

- App: https://pipedream.com/apps/obolus.md · All apps: https://pipedream.com/apps
