AI agent tool calling: it names the tool, Anlyon calls the API

AI agent tool calling with Anlyon works by name: your agent calls a tool, and Anlyon makes the API call. Anlyon calls each tool an action. Declare a call once, or install a pack. Your agent invokes it by name for a user, and Anlyon sends it with that user's own connection or your secret. The model never sees a key, and every call is checked before it leaves and recorded after.

A few lines on your server, then connect a user.

  1. 1.Declare itA method, a URL template, the input it takes and what it changes. Or install a pack.
  2. 2.Your agent names itIt invokes the action by name, for the user your server picked.
  3. 3.Anlyon checks itPolicies, the user's limit and any approval come before anything is sent.
  4. 4.Anlyon sends itWith the user's connection or your secret, and a receipt for the result.

The model names it. Everything else happens on Anlyon.

Follow one call for one user. The model's side stays a name and an input; the request that leaves is built, checked and signed on Anlyon's side.

What the model sentnever changes
{  "tool": "add-note",  "input": {    "record": "Acme Corp",    "note": "Renewal call moved to Friday"  }}
What Anlyon sendsbeing built
POST https://api.attio.com/v2/notesAuthorization: Bearer •••••••••• ← Maya's AttioContent-Type: application/json {  "record": "Acme Corp",  "note": "Renewal call moved to Friday"} # frozen for Maya's yes · apr_7c21# reserved 1 note · 5 of 20 today# 201 · read back · confirmed

A tool that holds a key puts that key one prompt away from the model. With Anlyon the key is added on the way out, so the model only ever knows the action's name.

Less risk

No key in the prompt, the tool or your agent's process, and every write passes the user's limit first.

Less cost

No token store, refresh job or table of per-user credentials to build and secure.

Less effort

Install a pack or declare a call once, then invoke it by name from any agent.

Your agent asks for an outcome. Anlyon holds the keys, the rules and the record.

Each user's own account, never their key

An action's header can name {{connection:attio}}. On a call for a user, Anlyon fills it with that user's own connection. A user who hasn't connected yet gets a fresh connect link back, so your app shows a Connect button instead of an error.

  • Each user connects their own HubSpot, Slack, Linear or GitHub
  • The model's tools have no user field, so a prompt can't switch users
  • Revoke a connection or erase a user from the console

A vault with no read endpoint

For a call made with your own account, the action references {{secret:STRIPE_KEY}}. Anlyon decrypts it at the moment of dispatch and puts it in the request it sends. No API returns the value: that endpoint was never built.

  • The key is in the request Anlyon sends, never in the model's context
  • Each secret is bound to its hosts, checked again on every call
  • Or point a secret at AWS Secrets Manager or HashiCorp Vault

Every call passes your rules first

Approval policies are evaluated on every invocation. A limit is reserved before dispatch, and a risky step waits for the user's yes in your app. A call over the limit is refused, and nothing reaches the provider.

  • Counted for each user, before anything is sent
  • The user approves the exact request in your app
  • One switch halts every call in the environment

A receipt and a grade for every call

Every call gets a receipt that says what was sent and how it ended. Confirmed means a read-back matched the request. Acknowledged means the provider accepted the request and nothing read it back. The receipt carries the user's id, so you can show a user what their agent did.

  • Filter calls and receipts by user
  • Webhook and event payloads include the user

Declare it once. Invoke it for a user.

The header names the user's connection, not a key. Your server picks the user, and the agent knows only the action's name.

actions.ts
// Declare the call once. The header names a connection, not a key.await anlyon.actions.create({  name: "add-note",  method: "POST",  urlTemplate: "https://api.attio.com/v2/notes",  headers: { Authorization: "Bearer {{connection:attio}}" },  impact: { dimension: "notes", amount: "1", bound: "exact" },});// Your server names the user. Anlyon sends it with their Attio.const { data } = await anlyon  .forUser(session.userId)  .actions.invoke("add-note", note);

Let your agent act for your users, safely.

A few lines of server code, then send a user a connect link. Nothing to host.

$ claude mcp add --transport http anlyon https://api.anlyon.com/mcp