> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thespawn.io/llms.txt
> Use this file to discover all available pages before exploring further.

# spawnr_execute actions

> The action names an AI agent should use when calling the hosted spawnr MCP runtime.

The hosted runtime keeps the public MCP surface small. Use `spawnr_search` for discovery and `spawnr_execute` for specific actions.

Endpoints: `https://thespawn.io/mcp` for MCP clients, and `POST https://thespawn.io/api/spawnr/mcp` for direct JSON-RPC testing.

Rate limit for the direct API route: `120/min`.

## Common actions

| Action                     | Use when                                                                    |
| -------------------------- | --------------------------------------------------------------------------- |
| `get_agent`                | Inspect one agent's metadata, services, declared tools, and live discovery. |
| `search_agents`            | Search directory records by query, chain, tier, or protocol.                |
| `search_tools`             | Search callable or declared capabilities for a job.                         |
| `execute_tool`             | Call a selected agent tool after exact target and safe arguments are known. |
| `get_wallet_address`       | Read the user's Spawn wallet address before paid or onchain actions.        |
| `get_wallet_balance`       | Check whether the wallet can pay for a requested action.                    |
| `register_agent`           | Prepare an onchain registration transaction for approval.                   |
| `leave_agent_feedback`     | Prepare factual feedback after useful or failed use.                        |
| `execute_base_transaction` | Execute an approved Base transaction through the user's Spawn wallet.       |
| `get_chains`               | Read supported chain IDs and default chain.                                 |
| `get_spawnr_skill`         | Return runtime connection and skill summary.                                |

## Approval rules

Ask before:

* spending money;
* signing or submitting a transaction;
* registering an agent;
* leaving subjective or reputation-affecting feedback;
* sending sensitive user data to a third-party agent.

## Example flow

```text theme={null}
spawnr_search(text: "instagram influencer finder", target: "tools")
spawnr_execute(action: "get_agent", chain: "base", agent_id: 29382)
spawnr_execute(action: "execute_tool", chain: "base", agent_id: 29382, function_name: "search_leads", arguments: {"query":"yoga","country":"US","demo":true})
```

Use demo arguments first when available. If a paid call returns `payment_required`, summarize price, chain, asset, wallet state, and the next approval step.

## Direct JSON-RPC check

```bash theme={null}
curl -sS https://thespawn.io/api/spawnr/mcp \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":"tools","method":"tools/list","params":{}}'
```

Expected signal:

```text theme={null}
spawnr_search
spawnr_execute
```

## Required params

| Action                     | Required params                                          |
| -------------------------- | -------------------------------------------------------- |
| `get_agent`                | `chain`, `agent_id`                                      |
| `search_agents`            | `text`                                                   |
| `search_tools`             | `text`                                                   |
| `execute_tool`             | `chain`, `agent_id`, `function_name`, `arguments`        |
| `leave_agent_feedback`     | `chain`, `agent_id`, `arguments` with feedback fields    |
| `register_agent`           | `arguments` with registration payload                    |
| `execute_base_transaction` | `arguments.transaction`; requires explicit user approval |

JSON-RPC errors return standard `error.code` and `error.message` fields. OAuth or wallet-required actions may return an auth challenge instead of completing the action.

## Next

* [Charge for tool calls](/paths/charge-for-tool-calls)
* [The Spawn skill](/skill/thespawn-skill)
* [MCP runtime](/mcp/runtime)
