Skip to content

An API with an OpenAPI document

When a service has an API but no MCP server, Toolscaled can still turn the operations of its API into tools. It needs the API’s OpenAPI document: a file in JSON or YAML that lists the operations. Toolscaled reads OpenAPI 3.0 and 3.1, and Swagger 2.0, which it converts. An API without such a document cannot be added.

  1. Open Tools in the left bar and select Add tools.

  2. Select An API, then Next.

  3. Fill in Source name.

  4. Give the document in one of three ways:

    • Type its address in OpenAPI document URL and select Load OpenAPI URL. The address must be a public HTTPS address.
    • Paste the document in OpenAPI JSON or YAML.
    • Drop a .json, .yaml or .yml file in the file box (5 MB at most).

    Add tools, step API document, with Source name Petstore, the OpenAPI document URL, the button Load OpenAPI URL, the box OpenAPI JSON or YAML, the file box, Explicit base URL and the button Preview operations

  5. Fill in Explicit base URL only when the page asks for it: some documents do not say at which address the API answers.

  6. Select Preview operations. The preview adds nothing yet.

  7. Choose the credential in the section Credential, if the API needs one. The page says what the API accepts. Choose a saved credential, or select Add credential here (see the kinds of credential).

  8. Choose the operations that you want as tools, and select Check selected operations.

  9. Select Commit source.

The tools of the chosen operations are in a group of their own. Choose only the operations that your work needs. Each tool is one more choice for your agent, and a short list helps it pick the right one.

The page lists up to 150 operations. When a document from an address has more, the page gives you a prompt for your agent instead (Set up with your agent). Copy it into the chat: the agent reads the list of operations and chooses the ones your task needs. To choose on the page yourself, paste or upload the document.

Ask your agent, for example:

Import the OpenAPI document at https://api.example.com/openapi.json into Toolscaled. Show me its operations and help me choose the ones my task needs.

The agent shows you the operations and adds the ones you choose. When the API needs a key, the agent gives you a link to a page with one field for it. Paste the key there and select Save key and add group. The agent never takes the key in the chat.