Skip to content

Tools: catalog, HTTP, OpenAPI, MCP

Tools go under assistant.tools. There are five ways to add one.

tools:
- use: github
- use: slack # needs approval by default

Built-in: deepwiki, wikipedia, weather, github, slack, notion, stripe. Each brings the secrets it needs. agent-platform tools lists them; agent-platform tools github shows what one needs. Any other field overrides the catalog’s, e.g. - use: github with allow: [search_code].

tools:
- type: http
name: weather
description: Current weather for a city
url: https://api.example.com/weather/{city} # {arg} = a model argument
method: GET # GET/DELETE: other args go in the query; POST/PUT/PATCH: JSON body
headers: { authorization: "Bearer ${WEATHER_TOKEN}" } # ${NAME} = a declared secret
parameters:
type: object
properties: { city: { type: string } }
required: [city]
secrets: [WEATHER_TOKEN]

Every operation of an OpenAPI 3 spec (JSON or YAML) becomes a tool named <name>__<operationId>:

tools:
- type: openapi
name: pets
spec: https://petstore3.swagger.io/api/v3/openapi.json
operations: [findPetsByStatus, getPetById] # required when the spec has more than 30
baseUrl: https://staging.example.com/v3 # optional; default is the spec's first server
headers: { api_key: "${PET_API_KEY}" }
  • Path parameters fill the URL, query parameters go in the query string, and a JSON body is passed as the body argument. Header and cookie parameters are skipped — put auth in headers.
  • The spec is fetched once, at deploy time, and stored with the deployment, so rollbacks are exact.
  • Specs are fetched only over https and never from private, loopback or cloud-metadata addresses.
  • The expanded assistant must stay under 24 KB; use operations to trim it.
tools:
- type: mcp
name: deepwiki
url: https://mcp.deepwiki.com/mcp # Streamable HTTP
allow: [ask_question] # optional: only these tools
headers: { authorization: "Bearer ${DEEPWIKI_TOKEN}" }

The model sees each MCP tool as <server>__<tool>. Another AbstractAI assistant works here too — every assistant is an MCP server.

Tools in the dashboard lists the catalog and your workspace’s own tools. Create a tool saves an HTTP endpoint or a remote MCP server (optionally marked needs approval). Tick it under My tools in the assistant builder; its definition is copied into agent.yaml, so editing or deleting the saved tool never changes a running assistant. From the CLI, agent-platform tools <name> prints the YAML to paste.

Add approval: true to any tool (or MCP server) so a person must approve each call — see Tool approvals.