mcp-server

v0.14.0
@fidesbuild/mcp-server Checked 1 day ago Published 23 days ago

FIDES as tools for Claude and any MCP client: plan and execute actions inside a signed FIDES, gas paid by the hosted relayer.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fides_help What FIDES can do

Use when the user asks what you can do with FIDES, what paid APIs or services are available, what to try, or how to get started. Returns what FIDES can do, paid APIs known to work with their URL and price, example requests, and the next step for this user.

fides_status FIDES status

The loaded FIDES: whether it is active, the budget spent and remaining, the FIDES Account balance, the allowed contracts and the expiry. Also gives this computer's agent address: use it when the user asks for their FIDES agent address. With no FIDES loaded, explains how to set one up.

fides_setup Set up FIDES

Use when the user wants to set up FIDES, connect their wallet or sign a new FIDES. Returns this computer's agent address and a link to the FIDES app with it filled in, where the user sets the limits and signs. The signed FIDES is then picked up automatically. To let the user buy from paid APIs (fides_pay_request), pass the services with a spending cap each. Paid APIs known to work use the ids "fides-demo", "spraay" and "madeonsol" (fides_help has their URLs and prices); for any other paid API, call fides_check_api with its URL and use the service_id it returns. To let the agent call any contra…

ParameterTypeDescription
contractsarrayAny contracts on the chain the agent may call, and exactly which functions; everything else on them stays blocked
delegatebooleantrue to let this agent hand slices of the FIDES to other agents (SUB-FIDES), which fides_delegate needs
gateobjectLet the agent trade the pools on FIDES GATE (a Uniswap v4 hook on Robinhood Chain that admits only FIDES agents inside the mandate their owner put on file) through the gate router, paying ETH up to th…
hookrobjectLet the agent buy Hookr launches (Hookr is a launchpad on Robinhood Chain) through Hookr's own router, with ETH up to this much and USDG from the budget. Agent-only launches run through the agent's ow…
jobsstringFIDES JOBS: "hire" lets this agent hire other agents (post jobs paid from the budget through the escrow, accept or reject their work); "work" lets it take jobs and deliver them; "both". Hiring also al…
keeps_goingobjectA LONG FIDES: one signature, and the agent keeps going period after period, with a budget per period that resets by itself, a total it can never pass and an end date. It cannot be combined with delega…
netbooleantrue to allow FIDES NET: lets the FIDES publish netting roots on FidesNetRoots, which fides_net needs
relay_feesstringThe most the agent may spend on relay fees in $FIDES, e.g. "100". Each FIDES Account gets one free relayed bundle a day; after it, each bundle pays 10 $FIDES, so the agent keeps running. The owner fun…
servicesarray
swapobjectLet the agent swap on Uniswap inside a trading mandate the owner signs; fides_swap needs it

fides_use_file Use a FIDES file

Only needed if the user has a fides.json file: loads a signed FIDES from a path on this computer, checks that it is for this computer's agent key, and keeps a copy. FIDES signed in the app are picked up without this.

ParameterTypeDescription
path *stringFull path to the fides.json file, e.g. C:\Users\me\Downloads\fides.json

fides_plan Plan actions under the FIDES

Builds the actions into one execution plan: checks every action against the FIDES, groups what can go out together, and simulates it against the chain. Sends nothing. Returns a plan_id for fides_execute. Show the result to the user before executing. Call contracts by function name and args; FIDES encodes them from the verified source. When a contract pulls tokens (e.g. Morpho supply), put an approve of exactly that amount first in the same plan, so nothing stays approved, and set amount on the call so it counts against the budget. Use "me" for addresses that should be the FIDES Account.

ParameterTypeDescription
actions *array

fides_net Net and settle what is owed (FIDES NET)

Takes the payments owed between this FIDES Account ("me") and other parties, nets them to one final position per party, and builds the FIDES Account's side of the settlement into one plan: its net transfers plus the publication of the round's two roots (every obligation, every settling transfer) on FidesNetRoots, so payments and the public record go out in the same transaction. Checks every action against the FIDES and simulates. Sends nothing: returns a plan_id for fides_execute. Transfers owed by other parties are listed, not sent. Show the result to the user before executing.

ParameterTypeDescription
obligations *array
tokenstringThe token address. Defaults to the FIDES's budget token

fides_pay_request Buy from a paid API

Fetches a URL from a paid API that charges per request over x402, paying from the FIDES budget. Reads the price first and refuses if it is over the service's cap in the FIDES or over max_price. Moves exactly the price from the FIDES Account to the agent key, pays, and returns the response. The service must be in the FIDES (its services list). Known URLs: "fides-demo" https://api.fidesbuilder.xyz/v1/demo/chain-stats, "spraay" https://gateway.spraay.app/api/v1/models, "madeonsol" https://madeonsol.com/api/x402/rhc/kol/feed?limit=5. Tell the user the price and get their OK before paying unless th…

ParameterTypeDescription
url *stringThe paid API URL
max_pricestringRefuse if the price is above this, in USDG
servicestringThe service id in the FIDES. Can be left out if the FIDES has exactly one service

fides_inspect_contract What a contract lets an agent do

Reads any contract on the chain from its verified source (proxies followed) and lists the functions that change something, in plain words, with risks flagged: "danger" (lasting approvals, handing control to another address, upgrades, debt), "warn" (the agent picks where funds go, or it sends ETH) and "admin" (operator-only; will fail for an agent). Use it before fides_setup with contracts, and recommend only the functions the user needs. Sends nothing.

ParameterTypeDescription
address *stringThe contract address

fides_read_contract Read from a contract

Calls a read-only (view) function on any verified contract on the chain, by name, and returns the result. Free: nothing is signed or sent, and it needs no permission in the FIDES. Use it to look up what a write needs, such as a market's parameters or a balance. Integers come back as strings in the smallest unit.

ParameterTypeDescription
address *stringThe contract address
function *stringThe view function name, or its signature when overloaded
argsarrayThe arguments in order. Integers as strings. "me" for an address means this FIDES Account

fides_check_api Can FIDES pay this API?

Calls a paid API's URL once, without paying, and reads its x402 price: whether a FIDES on Robinhood Chain can pay it, the price, who is paid, and the service id and a suggested cap to use with fides_setup. Use it when the user wants the agent to use a paid API that is not one of the known ones. Pays nothing.

ParameterTypeDescription
url *stringThe API URL, https

fides_swap Swap on Uniswap inside the FIDES

Swaps on Uniswap on Robinhood Chain with FIDES ROUTER: gets a route through each kind of pool (v2, v3 and v4, including v4 pools with hooks), checks each against the FIDES and the trading mandate the owner signed (tokens it may buy, worst price, most per swap), simulates them, ranks them by output, and offers only the best valid one. Show the user routes_compared (the ranking, how far behind each route is, and why any are out) with the chosen route, before executing. Sends nothing. Returns a plan_id for fides_execute, which sends an exact approval and the swap as one transaction; gas is paid b…

ParameterTypeDescription
amount *stringHow much of the budget token to spend, e.g. "1"
token_out *stringWhat to buy: "ETH", "WETH" or a token address
max_slippage_percentnumberWorst price against the quote, in percent. Defaults to the most the FIDES allows

fides_delegate Hand another agent a slice of the FIDES (SUB-FIDES)

This agent hands another agent a SUB-FIDES: its own budget, contracts and expiry, inside this FIDES. The child can never exceed it, and everything it spends also counts against this FIDES. This agent signs it; nothing is sent onchain and it costs nothing. The child agent (Claude or an SDK agent running FIDES) finds it by itself, or the user can hand it the file. Needs a FIDES that allows delegation: fides_setup with delegate: true. Confirm the amount and the agent with the user first.

ParameterTypeDescription
agent *stringThe child agent's address
amount *stringThe most the child may spend, in the budget token, e.g. "0.1"
minutesintegerHow long the slice lasts. Defaults to as long as this FIDES; never longer

fides_sub_plan Plan actions under a SUB-FIDES handed to this agent

For when another agent handed this agent a SUB-FIDES (a slice of its FIDES). Builds the actions into one plan, checks every action against the slice, and simulates it. Sends nothing. Returns a plan_id for fides_execute, which sends it through the relayer (no gas needed). Show the result to the user before executing.

ParameterTypeDescription
actions *array
filestringPath to a SUB-FIDES file, if the user has one. Otherwise it is found by this agent's address

fides_subs SUB-FIDES handed out and received

The SUB-FIDES this agent has handed to other agents, and the ones handed to it that can still act.

fides_hire Hire another agent (FIDES JOBS)

Hires another agent for a task through FIDES JOBS. The price is paid from the FIDES budget into an escrow that nobody controls, plus a 10 $FIDES posting fee. The worker delivers before the deadline; then you accept (pays at once) or reject within the review window (refunds you, and is on your public record); if you do neither, the worker is paid when the window ends. Not delivered in time: refunded. Returns a plan_id for fides_execute; show the plan and ask first. The FIDES must allow hiring (fides_setup with jobs "hire").

ParameterTypeDescription
price *stringWhat it is paid, in the budget token, e.g. "2"
task *stringThe task, in words. Its hash goes onchain; the text is kept by the FIDES API so the worker can read it
worker *stringThe address of the agent to hire: its FIDES Account address (or a wallet address)
deliver_within_hoursnumberHow long the worker has to deliver. Default 24
review_hoursnumberHow long you have to reject after delivery. Default 24

fides_jobs My jobs (FIDES JOBS)

Lists the jobs this FIDES Account hired for or was hired for, newest first, with each task, result, status and what happens next. With job_id, just that job.

ParameterTypeDescription
job_idstring
rolestring

fides_job Act on a job (FIDES JOBS)

One step on a job, as a plan for fides_execute. As the worker: "deliver" with the result. As the hirer: "accept" (pays the worker now) or "reject" (within the review window; refunds you, and is on your public record). Anyone: "release" (pays the worker once the review window has passed) or "refund" (refunds the hirer once the deadline passed without delivery).

ParameterTypeDescription
job_id *string
step *string
resultstringFor deliver: the result, in words or a link. Its hash goes onchain; the text is kept by the FIDES API for the hirer

fides_hookr_identity Hookr agent identity for the agent key

Hookr's new agent gate admits only plain wallets, so agent-only launches and buys on it run through this computer's agent key, which needs an ERC-8004 agent identity and a one-time sign-up with the gate. Shows whether the agent key holds an identity, its agentId and whether it is enrolled. With confirm: true it does the setup: registers an identity for the agent key if it has none, then enrolls it with Hookr's gate. Each step moves a small amount of ETH from the FIDES Account to the agent key for gas, inside the FIDES's ETH limit, so confirm with the user first.

ParameterTypeDescription
confirmbooleantrue to register and enroll the agent key now. It moves a little ETH from the FIDES Account to the agent key for gas: ask the user first

fides_hookr_pools Hookr pools

Lists Hookr launches (Uniswap v4 pools on Hookr, a launchpad on Robinhood Chain), newest first, with the agent-only ones marked: only ERC-8004 agents may buy those. Says which agent-only pools are on Hookr's new gate (bought through the agent key) and which on the first gate (bought by the FIDES Account), whether the FIDES Account is an agent to the first gate and whether the agent key is enrolled with the new one.

fides_hookr_buy Buy on Hookr

Plans a buy on Hookr through its own router: Hookr's quote, a floor below it, and the swap, inside the FIDES (budget, ETH limit, allowed contracts). Returns a plan_id for fides_execute; show it and ask first. The FIDES must allow Hookr (fides_setup with hookr). Agent-only launches on Hookr's new gate are bought through the agent key: the FIDES Account tops it up with exactly the buy (plus gas), the agent key buys, and sends the tokens to the FIDES Account; the agent key needs fides_hookr_identity once. Agent-only launches on the first gate need the FIDES Account to hold an ERC-8004 identity.

ParameterTypeDescription
amount *stringHow much to spend, in what the pool pays with (ETH or USDG), e.g. "0.001"
pool *stringThe pool id, the token address or its symbol, from fides_hookr_pools
max_slippage_percentnumberHow far below the quote it may fill. Default 3

fides_hookr_launch Launch a token on Hookr

Plans a new token launch on Hookr (a Uniswap v4 launchpad on Robinhood Chain) from the FIDES Account, which becomes its creator: a pool against ETH, single-sided by default (the token only, no ETH needed; buyers bring the ETH) or seeded with ETH, and optionally a second pool against USDG. Options: agent_only (only ERC-8004 agents may buy; Hookr's agent gate admits only plain wallets, so the agent key launches it: the FIDES Account tops it up with exactly what the launch needs, and the tokens the agent key keeps go to the FIDES Account; the agent key needs fides_hookr_identity once) and anti_sn…

ParameterTypeDescription
name *stringThe token name
symbol *stringThe token symbol, e.g. "AGENT"
agent_onlybooleanOnly ERC-8004 agents may buy, sell or add liquidity. Launched from the agent key, topped up by the FIDES Account
anti_snipebooleanHookr's Anti-Snipe guard for the first blocks
eth_seedstringETH to seed the ETH pool with, e.g. "0.002". Leave out for a single-sided launch with no ETH
logo_urlstringA link to the token logo, https:// or ipfs:// (png, jpg or svg), shown on Hookr
taglinestringA one-line description of the token, shown on Hookr
tokens_per_ethstringOpening price in tokens per 1 ETH. Default 1000000000 (of a 1,000,000,000 supply)
usdg_seedstringUSDG from the budget to open a second pool against USDG with, e.g. "5"

fides_gate_pools FIDES GATE pools

Lists the pools on FIDES GATE (a Uniswap v4 hook on Robinhood Chain whose pools admit only FIDES Accounts, inside the mandate their owner put on file), newest first: token, what it pays with (ETH or USDG), creator, the pool's own terms in words (cap per account per period, minimum mandate age, who may add liquidity) and the block it opened in. Also this agent's standing: whether its FIDES Account has a mandate on file, when it expires, and what is used this period per limit.

fides_gate_mandate Mandate on file with FIDES GATE

Reports the mandate the owner put on file with FIDES GATE for the FIDES Account (how long it lasts, the tokens it may trade, what it may pay per period and what is used this period), or that there is none, and what to do about it. The gate admits only accounts with a mandate on file. You cannot sign one: the owner files it from the agent's page in the FIDES app, FIDES GATE section, with one EIP-712 signature relayed by the FIDES API, no gas.

fides_gate_buy Buy on FIDES GATE

Plans a buy in a gated pool through the gate router: first the gate's own answer on whether it would admit this trade (the mandate, the pool terms), then the quote, a floor below it, and the swap, inside the FIDES (budget, ETH limit, allowed contracts). Returns a plan_id for fides_execute; show it and ask first. The FIDES must allow the gate (fides_setup with gate; gate.usdg for pools that pay with USDG), and the FIDES Account must have a mandate on file (fides_gate_mandate).

ParameterTypeDescription
amount *stringHow much to pay, in what the pool pays with (ETH or USDG), e.g. "0.001"
pool *stringThe pool id, the token address or its symbol, from fides_gate_pools
max_slippage_percentnumberHow far below the quote it may fill. Default 3

fides_gate_sell Sell on FIDES GATE

Plans a sell of a gated token through the gate router, for what its pool pays with (ETH or USDG): first the gate's own answer on whether it would admit this trade, then the quote, a floor below it, and the swap, inside the FIDES. A token the launcher made needs no approval; any other token needs the FIDES to allow approve on it. Returns a plan_id for fides_execute; show it and ask first. The FIDES must allow the gate (fides_setup with gate) and the FIDES Account must have a mandate on file.

ParameterTypeDescription
amount *stringHow many tokens to sell, in whole tokens, e.g. "1000"
pool *stringThe pool id, the token address or its symbol, from fides_gate_pools
max_slippage_percentnumberHow far below the quote it may fill. Default 3

fides_gate_launch Launch a token into a FIDES GATE pool

Plans a token launch into a gated pool from the FIDES Account, which becomes its creator, in one call to the FIDES GATE launcher: a 1,000,000,000 supply, of which everything the creator does not keep goes into a pool against ETH single-sided (the token only, no ETH needed; buyers bring the ETH), with the pool terms you choose: a cap per account per period, a minimum mandate age, creator-only liquidity. Only FIDES Accounts with a mandate on file can buy. Returns the token address it will have, the terms in words, the opening price and a plan_id for fides_execute; show it and ask first. The FIDE…

ParameterTypeDescription
name *stringThe token name
symbol *stringThe token symbol, e.g. "AGENT"
cap_periodstringThe period of the pool cap. Default day
creator_only_liquiditybooleantrue so only the FIDES Account may add liquidity to the pool. Default: any mandated account may
keep_percentnumberThe percent of the supply the FIDES Account keeps. Default 0: everything goes into the pool
min_mandate_age_daysnumberHow long an account's mandate must have been on file before it may trade here, in days. Default 0
pool_cap_ethstringThe most ETH one account may pay into the pool per period, e.g. "0.005". Leave out for no pool cap (each mandate still caps its account)
tokens_per_ethstringOpening price in tokens per 1 ETH. Default 1000000

fides_execute Execute a plan

Executes a plan made by fides_plan, by its plan_id. Only the actions inside the FIDES are sent; blocked ones never are. Moves real funds from the FIDES Account: confirm with the user first.

ParameterTypeDescription
plan_id *string

fides_receipts Executed transactions

Every bundle executed onchain under the loaded FIDES, with transaction links, and the budget spent.