complex_calc
Complex number arithmetic: add, subtract, multiply, divide, magnitude, conjugate, or polar conversion.
This record as markdown: /tools/io-github-malamutemayhem-unclick-mcp-server/complex-calc.md
What complex_calc does on UnClick
AI agents invoke complex_calc to trigger actions in UnClick. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.
| Parameter | Type | Required | Description |
|---|---|---|---|
imag1 | number | Yes | Imaginary part of first complex number. |
imag2 | number | — | Imaginary part of second complex number (for binary ops). |
real1 | number | Yes | Real part of first complex number. |
real2 | number | — | Real part of second complex number (for binary ops). |
operation | string | Yes | Operation: add, subtract, multiply, divide, magnitude, conjugate, or polar. |
Parameters from the server's own tool schema.
Why complex_calc is rated High
This tool performs mathematical computations (arithmetic operations on complex numbers). It executes calculations rather than reading stored data or writing/modifying any data. There are no side effects, financial implications, or destructive actions. Severity is low since misuse is limited to incorrect math results with no system impact.
From the tool's definition Complex number arithmetic: add, subtract, multiply, divide, magnitude, conjugate, or polar conversion.
Attacks that exploit this kind of access
The rule that runs complex_calc safely
PolicyLayer is an MCP gateway: it sits between your AI agents and UnClick, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For complex_calc, this is the rule to start with:
complex_calc stays usable, but rate-capped: a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect UnClick, apply this rule, and every complex_calc call is checked against it from then on.
Questions about complex_calc
Complex number arithmetic: add, subtract, multiply, divide, magnitude, conjugate, or polar conversion. It is categorised as a Execute tool in the UnClick MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
complex_calc accepts 5 parameters: imag1, imag2, real1, real2, operation. Required: imag1, real1, operation. The full parameter table on this page comes from the server's own tool schema.
Register the UnClick MCP server in PolicyLayer and add a rule for complex_calc: 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 UnClick. Nothing to install.
complex_calc is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the complex_calc 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 complex_calc. 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.
complex_calc is provided by the UnClick MCP server (@unclick/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on UnClick, and thousands of servers like it.
Across the catalogue