Skip to content
GlxymeshDocs
glxymesh.com
Select theme
Open console
Reading time 4 minLevel Beginner

Build tools with AI

Describe a tool in plain language and let Ada write and check it in Mesh Builder, or have your own agent propose one, then review, test and publish it from the console.

Describe the tool you want. Ada, the AI in Mesh Builder, reads the API’s docs, writes the tool.yml and any code in your project’s language, and checks that it builds. You review it, give it network access and keys, and publish it. Nothing goes live until you do.

To turn your own API into tools, build from its code instead: see Build from GitHub.

Open Mesh Builder in the console, choose New build, and fill in:

  • What should it do? For example: “Refund a Stripe charge, list refunds and look one up. Never refund more than the charge.”
  • Link to the API’s docs, optional: up to 5 links, separated by spaces, such as https://docs.stripe.com/api/refunds.

Then start the build. It usually takes a minute or two, and you watch it live: each step on the left, Ada’s work in the middle, and each tool on the right as it’s written and tested. You can type to Ada while she works; she reads your message before her next step.

  1. Read docs and plan. Ada reads the links you gave and says which tools she will write.
  2. Write code. She writes each tool.yml, preferring http tools that need no code, and code for the rest.
  3. Build and test. The draft is built and its tests: run. When something fails, tell Ada what to fix, or Try a call yourself with your own arguments.
  4. Your turn. The draft lists the hosts each tool reaches and the keys it needs. Choose Allow for each host, and Store key to paste a key’s value, which is saved to the project’s vault: the AI that wrote the tool never sees it. Access you’ve allowed once in a project isn’t asked for again, and a key you’ve already stored only needs Allow.
  5. Publish. Choose Publish. The draft goes live as the project’s next revision, after the same tests a push runs.

If Ada needs something only you know, she asks in the chat; answer it and she carries on. After it’s live, keep chatting to her about it, such as how to connect a client or what a tool does, or ask her to change a tool. To change a draft your own agent wrote, say what to change on the draft and choose Send to the agent; it reads your note the next time it checks on the draft.

Ada works best with the same things a colleague would ask for:

  • What the tool is for, in one sentence. This becomes the tool’s description, which the model reads when it decides whether to call it.
  • The inputs, with an example value for each.
  • What to return, field by field. Fewer fields cost the model fewer tokens on every call.
  • The API’s docs, as links. Ada uses only what the docs say, and won’t invent endpoints or fields.
  • Anything to avoid, such as “never delete” or “read-only”.

For a database, say which one and where its connection string lives, such as “Postgres tools for my own database: read orders by customer and mark one shipped. Keep the connection string in the vault.” Ada writes function tools that connect over TCP, with the address in network.connect and the connection string as a passed-in key, and runs fixed, parameterized queries rather than SQL the caller writes. You approve the address and the key before anything goes live. See Connect to a database.

If a request needs something tools can’t do, such as UDP or an interactive SSH session, Ada says so and suggests what would work, instead of writing tools that only look right.