Build an unsigned swap transaction. Returns the deploy JSON for external signing, plus a human-readable summary.
AI agents invoke build_swap to trigger actions in CSPR[dot]trade MCP. 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.
This tool triggers an external financial operation (token swap) whose effects directly depend on the arguments provided (token pairs, amounts, slippage settings, etc.). Although the transaction is 'unsigned' and requires external signing to finalize, the tool constructs the binding financial instruction.
From the tool's definition 'Build an unsigned swap transaction' on a decentralized exchange (CSPR.trade) that constructs a financial operation (swap/trade).
Attacks that exploit this kind of access
Build an unsigned swap transaction. Returns the deploy JSON for external signing, plus a human-readable summary. It is categorised as a Execute tool in the CSPR[dot]trade MCP MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the CSPR[dot]trade MCP server in PolicyLayer and add a rule for build_swap: 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 CSPR[dot]trade MCP. Nothing to install.
build_swap 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 build_swap 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 build_swap. 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.
build_swap is provided by the CSPR[dot]trade MCP server (make-software/cspr-trade-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
build_swap is one line of CSPR[dot]trade's registry record.
The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.
Teams ship this data inside their own products. See what a licence covers →