Connect Neon to Toolspoke
Manage serverless Postgres projects, branches, databases, roles and computes. Toolspoke gives your agents 17 of its actions, and you decide which ones each project allows.
- Connection
- Provider REST API
- Authentication
- API key
- Actions exposed
- 17
- What a call bills
- Nothing
- Adapter
- Maintained by Toolspoke
- Category
- Database
Connected in three steps
Install Neon
Open the marketplace in your workspace, add Neon to the project your agents work in, and it appears on the gateway immediately.
Connect the credential
Provide the credential Neon asks for. Where to get it, and what it has to be able to reach, is the next section.
Give it to an agent
Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every Neon action the project leaves on.
Where the agent answers
Slack
Ask it in a channel or a thread, and it replies in the thread it was asked in.
Email
Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.
GitHub
Mention it on a pull request, and it answers there.
Schedule
A routine wakes it on a schedule, or when a new item matches.
Any agent in the project can use Neon, and only the actions the project leaves on.
What Neon asks for
API key. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.
- API keyRequired
- Neon Console → your avatar → Account settings → API keys → Create new API key for a personal key, or Organization settings → API keys for a key that reaches only that organization's projects.
- napi_…
What an agent can do in Neon
17 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.
10 read, 5 write, 2 destructive
Reads
10Fetches data and changes nothing.
list_projectsList the Neon projects this key can reach, with their region, Postgres version and default branch. Takes no required arguments, which is why an install tests itself with it. A personal key that belongs to several organizations may need org_id to see an organization's projects.
get_projectRead one project's settings, region, Postgres version, compute defaults and storage and compute usage for the current period.
list_organizationsList the organizations the key's owner belongs to, with the org_id each project listing can be narrowed by.
list_branchesList a project's branches with their parent, state, size and whether each is the default. A branch id (br-…) is what every database, role and restore call takes.
get_branchRead one branch, including its parent, the point it was branched from, its logical size and its protection state.
list_databasesList the Postgres databases on a branch with the role that owns each.
list_rolesList the Postgres roles on a branch. Passwords are not returned here.
get_connection_uriReturn a ready-to-use postgresql:// connection string for a database and role. The string contains the role's password, so this response is never written to the audit log.
list_endpointsList a project's computes (endpoints) with their branch, host, state (active or idle), size limits and autosuspend setting.
list_operationsList a project's recent control-plane operations (branch creation, compute starts, restores) with their status. Use it to see whether a change has finished or why it failed.
Writes
5Creates or updates something on the other side.
create_branchCreate a branch: an instant copy-on-write copy of its parent's data, so it is cheap and can be deleted afterwards. Forks the project's default branch unless parent_id is given. Adds a read-write compute by default so the branch can be connected to at once; set compute_type to read_only for a replica compute instead.
create_databaseCreate an empty Postgres database on a branch, owned by an existing role. Reversible by deleting it in the console; nothing existing is changed.
start_endpointStart an idle compute. Computes also wake on their own when a connection arrives, so this is for warming one up ahead of traffic.
suspend_endpointSuspend a compute now. Open connections are closed; the next connection starts it again.
restart_endpointRestart a compute, for example to apply new settings. Open connections are dropped while it restarts.
Destructive
2Deletes or permanently alters something. Worth granting on purpose.
delete_branchDelete a branch with its databases, roles and computes. Destructive because the branch's data goes with it and a branch that has children cannot be deleted at all. The default branch cannot be deleted.
restore_branchRestore a branch's data from a source branch, optionally at a point in time. Destructive because it replaces the target branch's current data: set preserve_under_name to keep the old state as a backup branch, otherwise it is gone. Restoring a branch to its own earlier state needs source_lsn or source_timestamp.
What it will not do
The gateway enforces each of these, so they can be stated flatly.
- It cannot call anything else
- The 17 actions above are the whole of it. A call to any other name is refused before it reaches Neon rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time.
- It reaches no further than your credential
- Toolspoke holds no access to Neon of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either.
- It never hears from Neon
- Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Neon. An agent has to ask.
- It does not smooth over provider limits
- Toolspoke does not retry, queue or back off around Neon's own rate limits. A call that Neon refuses comes back to the agent as a failed call.
Before you connect it
What can an agent do in Neon?
17 named actions: 10 that only read, 5 that write and 2 that delete or permanently alter something. They include list_projects, get_project and list_organizations. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.
What credentials does the Neon connector need?
API key. The connector asks for api key. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.
How does an agent get to use Neon?
Install Neon in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.
What does the Neon connector not do?
The 17 actions above are the whole of it. A call to any other name is refused before it reaches Neon rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. Toolspoke holds no access to Neon of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Neon. An agent has to ask. Toolspoke does not retry, queue or back off around Neon's own rate limits. A call that Neon refuses comes back to the agent as a failed call.
Can I limit which actions an agent can call?
Yes, in two places. The project switches Neon's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.
What gets recorded when an agent calls Neon?
Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.