margin_doctor_finance
Médecin des Marges — Gapup agent-payable C-suite expertise (CFO). Returns a structured, audited deliverable. Reference case: Alan — ARR €60M · marge brute 68% → 79% · €3,2M fuites identifiées · Rule of 40 : 14→38. Inputs are validated server-side — send the documented case fields.
This record as markdown: /tools/io-github-getgapup-gapup-mcp/margin-doctor-finance.md
What margin_doctor_finance does on Gapup Mcp
AI agents use margin_doctor_finance to commit financial operations through Gapup Mcp, usually the final step of a payment, billing, or trading workflow. A call moves real money.
| Parameter | Type | Required | Description |
|---|---|---|---|
async | boolean | — | If true, returns a job_id immediately (<200ms) instead of waiting for the result. Poll the result with job_result(job_id). Use for slow tools to avoid client ti |
company | object | Yes | |
costBreakdown | array | Yes | |
marginTargets | object | Yes | |
unitEconomics | object | Yes | |
incomeStatement | object | Yes |
Parameters from the server's own tool schema.
Why margin_doctor_finance is rated Critical
This tool is explicitly agent-payable (x402 per-call billing model) and provides CFO-level financial analysis and margin optimization. Each invocation incurs a financial transaction cost. The tool also identifies financial 'leaks' and restructures financial metrics, meaning misuse could lead to both direct per-call financial charges and potentially flawed financial guidance at C-suite level.
From the tool's definition agent-payable C-suite expertise (CFO)... €3,2M fuites identifiées... Rule of 40... marge brute 68% → 79%... x402 per-call
Risk signalsHigh parameter count (33 properties)
Attacks that exploit this kind of access
The rule that runs margin_doctor_finance safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Gapup Mcp, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For margin_doctor_finance, this is the rule to start with:
Any call to margin_doctor_finance is blocked until a human approves it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect Gapup Mcp, apply this rule, and every margin_doctor_finance call is checked against it from then on.
Questions about margin_doctor_finance
Médecin des Marges — Gapup agent-payable C-suite expertise (CFO). Returns a structured, audited deliverable. Reference case: Alan — ARR €60M · marge brute 68% → 79% · €3,2M fuites identifiées · Rule of 40 : 14→38. Inputs are validated server-side — send the documented case fields. It is categorised as a Financial tool in the Gapup Mcp MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
margin_doctor_finance accepts 6 parameters: async, company, costBreakdown, marginTargets, unitEconomics, incomeStatement. Required: company, costBreakdown, marginTargets, unitEconomics, incomeStatement. The full parameter table on this page comes from the server's own tool schema.
Register the Gapup MCP server in PolicyLayer and add a rule for margin_doctor_finance: 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 Gapup Mcp. Nothing to install.
margin_doctor_finance is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the margin_doctor_finance 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 margin_doctor_finance. 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.
margin_doctor_finance is provided by the Gapup MCP server (https://mcp.gapup.io/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Gapup, and thousands of servers like it.
Across the catalogue