profit_loss
Profit & Loss (Income Statement) Calculator — Gross profit, EBITDA, operating income, taxes, net income and margins.
This record as markdown: /tools/com-wingmanprotocol-agent-gateway/profit-loss.md
What profit_loss does on Gateway
AI agents call profit_loss to retrieve information from Gateway without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
cogs | number | — | Cost of goods sold in USD |
taxes | number | — | Explicit tax amount in USD (overrides tax_rate_pct) |
revenue | number | Yes | Total revenue in USD |
amortization | number | — | Amortization in USD |
depreciation | number | — | Depreciation in USD |
other_income | number | — | Other income in USD (can be negative) |
tax_rate_pct | number | — | Tax rate percent applied to pretax income |
interest_expense | number | — | Interest expense in USD |
operating_expenses | number | — | Operating expenses (SG&A etc.) in USD |
Parameters from the server's own tool schema.
Why profit_loss is rated Low
This tool performs financial analysis and computation (reading/querying financial figures to derive standard accounting metrics). It does not move money, create/modify records in external systems, execute arbitrary code, or delete data. The user must provide input values, and the tool returns calculated results.
From the tool's definition Tool name is 'profit_loss' and description states it is a 'Profit & Loss (Income Statement) Calculator' that computes financial metrics like 'Gross profit, EBITDA, operating income, taxes, net income and margins.' These are all read-only calculations over…
Attacks that exploit this kind of access
The rule that runs profit_loss safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Gateway, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For profit_loss, this is the rule to start with:
profit_loss is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Gateway, apply this rule, and every profit_loss call is checked against it from then on.
Questions about profit_loss
Profit & Loss (Income Statement) Calculator — Gross profit, EBITDA, operating income, taxes, net income and margins. It is categorised as a Read tool in the Gateway MCP Server, which means it retrieves data without modifying state.
profit_loss accepts 9 parameters: cogs, taxes, revenue, amortization, depreciation, other_income, tax_rate_pct, interest_expense, operating_expenses. Required: revenue. The full parameter table on this page comes from the server's own tool schema.
Register the Gateway MCP server in PolicyLayer and add a rule for profit_loss: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Gateway. Nothing to install.
profit_loss is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the profit_loss rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for profit_loss. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
profit_loss is provided by the Gateway MCP server (https://wingmanprotocol.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Gateway, and thousands of servers like it.
This server
Across the catalogue