# get_margin

Simulate margin requirements for a hypothetical portfolio

Agent View of the PolicyLayer registry record for `get_margin`. HTML page: https://policylayer.com/tools/aadarshvelu-derive-mcp/get-margin

## Facts

- Tool: `get_margin`
- Server: Derive MCP Server (`aadarshvelu/derive-mcp`) — https://policylayer.com/tools/aadarshvelu-derive-mcp.md
- Homepage: https://github.com/aadarshvelu/derive-mcp
- Risk category: Read (Low risk)
- Registry record: grade A, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

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

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_margin",
    "arguments": {}
  }
}
```

## Why get_margin is rated Low

This tool retrieves or calculates financial information (margin requirements) based on hypothetical portfolio parameters without side effects. It does not execute trades, move money, modify data, or delete anything. The simulation is a computational query against market data, making it a Read operation.

From the tool's own definition: "Tool name 'get_margin' with description 'Simulate margin requirements for a hypothetical portfolio' performs a calculation/simulation based on input parameters without modifying any data. The word 'simulate' indicates a read-only query operation."

## Use case

AI agents call get_margin to retrieve information from Derive MCP Server 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 Derive MCP Server:

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

## Other tools on Derive MCP Server (14)

- `get_all_currencies` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-all-currencies.md
- `get_all_instruments` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-all-instruments.md
- `get_currency` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-currency.md
- `get_funding_rate_history` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-funding-rate-history.md
- `get_instrument` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-instrument.md
- `get_interest_rate_history` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-interest-rate-history.md
- `get_latest_signed_feeds` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-latest-signed-feeds.md
- `get_liquidation_history` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-liquidation-history.md
- `get_option_settlement_history` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-option-settlement-history.md
- `get_spot_feed_history` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-spot-feed-history.md
- `get_spot_feed_history_candles` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-spot-feed-history-candles.md
- `get_statistics` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-statistics.md
- `get_ticker` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-ticker.md
- `get_tickers` — Read — https://policylayer.com/tools/aadarshvelu-derive-mcp/get-tickers.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=aadarshvelu-derive-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/aadarshvelu-derive-mcp
