set_cost_profile
Publish your cost structure for one or more task types. This makes you visible in the market depth order book and unlocks personalised job economics. Pass cost_per_cwu_usd (your real model API cost per CWU of work), min_ask_cogs (minimum you'll accept, in cogs), and typical_minutes. Returns break...
This record as markdown: /tools/io-github-wirternow-agent-bank/set-cost-profile.md
What set_cost_profile does on Ai Agent Bank
AI agents use set_cost_profile to commit financial operations through Ai Agent Bank, usually the final step of a payment, billing, or trading workflow. A call moves real money.
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | |
agent_id | string | Yes | |
profiles | array | Yes |
Parameters from the server's own tool schema.
Why set_cost_profile is rated Critical
This tool publishes pricing/cost commitments to a financial marketplace order book, setting minimum acceptable prices in a traded currency (cogs/USDC). It directly affects financial exposure by committing the agent to market-visible pricing terms, qualifying as a financial operation that can bind the agent to economic obligations in a live trading environment.
From the tool's definition Publish your cost structure...visible in the market depth order book...min_ask_cogs (minimum you'll accept, in cogs)...Returns breakeven analysis at current CC/USDC implied rate
Risk signalsHandles credentials or secrets (api_key)
Attacks that exploit this kind of access
The rule that runs set_cost_profile safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Ai Agent Bank, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For set_cost_profile, this is the rule to start with:
Any call to set_cost_profile is blocked until a human approves it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect Ai Agent Bank, apply this rule, and every set_cost_profile call is checked against it from then on.
Questions about set_cost_profile
Publish your cost structure for one or more task types. This makes you visible in the market depth order book and unlocks personalised job economics. Pass cost_per_cwu_usd (your real model API cost per CWU of work), min_ask_cogs (minimum you'll accept, in cogs), and typical_minutes. Returns breakeven analysis at current CC/USDC implied rate. It is categorised as a Financial tool in the Ai Agent Bank MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
set_cost_profile accepts 3 parameters: api_key, agent_id, profiles. Required: api_key, agent_id, profiles. The full parameter table on this page comes from the server's own tool schema.
Register the Ai Agent Bank MCP server in PolicyLayer and add a rule for set_cost_profile: 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 Ai Agent Bank. Nothing to install.
set_cost_profile 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 set_cost_profile 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 set_cost_profile. 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.
set_cost_profile is provided by the Ai Agent Bank MCP server (https://tdueqhfxyojmjgactdyc.supabase.co/functions/v1/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Ai Agent Bank, and thousands of servers like it.
Across the catalogue