---
title: Tools and approvals
summary: Agents reach tools through MCP servers and HTTP APIs. Access is default-deny, every call records its policy, and writes can wait for you.
section: concepts
order: 5
---
## Tool sources

A **tool source** is where an agent's tools come from. A project can register:

- a remote **MCP server** (Streamable HTTP, MCP 2025-11-25 or 2025-06-18), which Argus calls on the agent's behalf;
- an **HTTP API**, whose operations become tools: declared by hand, or chosen from an OpenAPI document (below);
- a **client tool** manifest, whose tools your own app answers;
- **built-in toolsets** that come with the platform, listed alongside yours.

When you register a source, Argus takes a **snapshot** of its tools. Refreshing takes a new snapshot and reports what changed. A tool that appears later is **not** granted to anyone until a new agent version includes it.

### Manage tool sources in the app

**Connections** in the left rail has a **Tool sources** page. It lists every source with its server's host, how Argus signs in to it, how many tools its latest snapshot has and when it was taken; the platform's `web` source comes first, marked **Provided by Argus**, with no remove action. Owners and members can:

- **Add a tool source.** Choose what you are adding: an **MCP server**, an **HTTP API** or an **OpenAPI document**. For an MCP server give a name, its `https` address and a sign-in: none, Argus's own identity for an audience (normally the server's own address), an API key, or OAuth sign-in (both below). Argus lists the server's tools when you add it; a server it cannot reach, or one on a private network or a loopback address, is refused with the reason on the form, and nothing is saved. An HTTP API and an OpenAPI document are described under "HTTP APIs as tools". A project holds a limited number of sources; at the limit the form says so and points you to Argus staff.
- **Refresh** an MCP server to take a new snapshot (an HTTP API's operations are the ones you chose when you added it, so it has no refresh). The page reports what was added, what is gone and what changed. A tool that appears stays off until an agent version grants it.
- **Remove** a source, after a confirmation. Agents that grant its tools lose them from their next run; their versions and past sessions are not touched.

Viewers see the list and change nothing. Adding and removing a source ask you to confirm it is you (sign in again if your last sign-in is not recent), because a source decides where Argus sends its requests. Saving, replacing or removing a key asks for the same confirmation. The same actions are available through the API (`POST`, `DELETE` and `POST .../refresh` on `/v1/projects/{project}/tool-sources`, and `PUT` and `DELETE` on `.../{source}/credential` for a key).

## HTTP APIs as tools

Not every service has an MCP server. A project can register a plain HTTP API as a tool source, with each **operation** (a method and a path on the API's address) becoming one tool. There are two ways to say what the operations are.

- **Declare them.** Give the API's `https` base address and, for each operation, a tool name, a method (`GET`, `POST`, `PUT`, `PATCH` or `DELETE`), a path such as `/orders/{id}`, and a JSON Schema for its inputs. A `{name}` in the path takes the input of the same name. The other inputs go in the query string for `GET` and `DELETE`, and in a JSON body for `POST`, `PUT` and `PATCH`.
- **Import an OpenAPI document.** Choose **OpenAPI document**, give its address or paste it (OpenAPI 3.x, JSON or YAML, up to 1 MiB), and choose **Read the document**. Argus lists every operation with a checkbox, says why any cannot become a tool, and previews the tools the chosen ones make. Each tool is named from its `operationId` (or the method and path when there is none) and takes the operation's parameters and JSON request body as inputs. A source keeps at most 100 operations; deprecated ones start unchecked. Argus follows references inside the document only, never to another address, and sends no credential when it fetches the document. It uses the document's first server as the API's address unless you type another.

What you chose is the source's snapshot: Argus does not read the document again or list the API later, and a grant pins those tools like any other. To change them, add the source again.

A call goes through the same path as an MCP tool: the grant is checked when the model is offered the tool and again before the call, an `ask` waits for a person, and the call is in the event log, the run map and the timeline like any tool call.

- **Methods are hints, not permission.** A `GET` looks read-only, but Argus does not take that on trust, exactly as for MCP servers. Under a wildcard grant (`allow: ["*"]`) every operation asks for approval, reads included, unless your agent definition lists it under `read_only`:

  ```yaml
  tools:
    - source: shop
      allow: ["*"]
      read_only: [list_orders, get_order]
  ```

  An operation you allow by name never asks; one you list under `ask` always does.
- **Sign-in.** An HTTP API uses the same credentials as an MCP server: none, Argus's own identity, an API key (sealed, write-only, sent as a bearer token or in a header you name) or OAuth sign-in. The credential goes only to the API's own address; a redirect to another address is refused. Unlike an MCP server, an API cannot be tried with a new key when you save it (there is no harmless request to try), so a key it refuses shows as **Needs reconnecting** on the first call that uses it, and a `401` is the only answer that does that: a `403` is read as the API's answer for that one request.
- **Where the API may be.** Every call passes the same guard as any address you choose: Argus refuses an API whose address resolves to the platform's own network, or to a private, loopback, link-local, shared-address or metadata range, on every call and every redirect. The platform's own tool servers cannot be reached through an HTTP source.
- **Limits.** A call lasts at most 30 seconds. The model sees at most 64 KiB of a response, with a note when it was cut. Argus reads JSON and text; an answer in another content type (an image, a PDF, an archive) is refused with a tool error instead of read. Redirects are followed only on the same address.
- **Errors are answers.** An error status (`404`, `422`, `429`, `500`) comes back as a tool error with the status and the API's own words, so the model can fix its request or stop. Argus sends an `Idempotency-Key` header on calls that change data, in case the API honours it. A call that was in flight when Argus restarted is not repeated unless it is a `GET`.

## Web search is built in

When the platform offers it, every project already has a tool source named `web` with two tools, `search` and `fetch`. You do not register it. It appears in the project's tool sources marked as provided by the platform, and an agent uses it like any source:

```yaml
tools:
  - source: web
    allow: [search, fetch]
```

`search` finds pages and `fetch` reads one page as text. Both are read-only and free of charge; the agent's own model calls still count against your budget. `fetch` refuses addresses on the platform's network, honours robots.txt and caps the size of a page. The name `web` is reserved: you cannot register a source with it, and you cannot remove or refresh the platform's. In the app it is listed first on **Connections**, **Tool sources**, with the line that every project has web search and that you turn it off for one agent in its access settings. If your project has the showcase agents, `showcase/researcher` uses it. If the platform does not offer web search, there is no `web` source and a grant on it gives the agent nothing.

## Default-deny grants

An agent version lists the tools it may use, per source:

```yaml
tools:
  - source: web
    allow: [search, fetch]
  - source: tickets
    allow: [read_ticket]
    ask: [close_ticket]
```

- `allow` tools the model may call without asking. `["*"]` grants every tool in the current snapshot.
- `ask` tools pause the run for a person's approval before each call.
- Everything else is **Deny**: invisible to the model and refused if called.

The Studio shows the same three states as **Allow**, **Ask** and **Deny**, and a person answers an Ask with **Approve** or **Reject**.

Each call records a `tool.policy` event with the decision: allowed, asked, approved or denied. You can read the decision next to the call in the timeline.

A grant can also give a tool a human **title** (`titles: { lookup: "Looking up your order" }`). The model never reads it; an [embedded session](/docs/embed-a-session.md) shows it as the status line while the tool runs, when its token hides tool calls.

## Servers you run are not trusted to describe themselves

A tool server can mark a tool as read-only, but Argus does not rely on that for servers it does not operate. Under a wildcard grant, any tool of such a server asks for approval unless your own definition lists it under `read_only`. The same holds for an HTTP API: its methods are hints. A tool you allow by name never asks. This means a server cannot talk its way out of an approval by labelling a destructive tool harmless.

## Approvals

An approval is permission for one tool call, not a change to the agent's grants.

## How to approve a tool call

When a run reaches a tool listed under `ask`, it pauses and creates a human request. The session shows a banner, **Waiting for you**, with the line "Approval needed in" and the agent's name (with several requests waiting, "2 requests are waiting. First: ..."). Choose **Review** in the banner to go to the approval card in the session's timeline. Studio's **Try** panel shows the same card for a run you start there.

1. Read the card. It names the tool and its source ("Allow web.fetch with these arguments?") and shows the call's **Arguments** as JSON, or says the call has no arguments. A very large payload is cut at 8 kB on the card with a note; the tool call above it has all of it. If the app cannot find the call the card is about, it says so and advises you to reject when you are not sure.
2. Choose **Approve** to let that one call run, or **Reject** to refuse it. Approving one call does not grant permission for later calls: an `ask` tool needs approval each time.

**What Reject does.** The call does not run. The agent is told, as the tool's result, that a person declined the call (a `denied` tool error), and the run goes on: the agent can explain, try something else or finish. Reject does not stop the run; to stop it, cancel the run.

**What if nobody answers.** A tool-call approval has no timeout. The run waits, shown as waiting for a person, until someone answers or the run is cancelled; a session is not removed by retention while a run is waiting for a person. (A human step in a flow can set `expires_after`, a duration such as `72h`, which the Studio starters do. When it passes the request is recorded as `expired` and that step fails with "nobody answered in time". If an agent asks a person a question with an `expires_after`, an unanswered call fails as `tool_timeout`.)

You can also answer the request from the command line (`argus sessions answer ID REQUEST --approve` or `--reject`) or through the API, from whichever device is in your hand. The request's answer is recorded as `approved` or `rejected`.

## Where tool servers may be

Argus refuses to call a tool server whose address resolves to the platform's own network or to a special-purpose range: loopback in production, private, link-local, shared-address and cloud metadata addresses. The check is on the address actually dialled, so a name that is changed to point inward after registration is still refused. A platform-operated server on the private network can be reached only by an exact name the operator has allowed. Error text from your server is not relayed back, so a probe learns nothing about the network.

## Servers that need an API key

Most hosted MCP servers want a key, and so do most HTTP APIs. Choose **An API key** when you add the server, paste the key, and say how the server expects it: as `Authorization: Bearer <key>` (the default) or as the whole value of a header you name, such as `X-Api-Key`. One key belongs to one source and is the project's: everyone who may call that source uses it.

- **Tried first.** Argus lists the server's tools with the key before it saves anything. A key the server refuses is not saved, and the form says so; a key you are replacing stays in place until a new one is accepted.
- **Sealed, write-only.** The key is encrypted before it is stored, bound to your project and that source, and never shown again: the page shows only its last four characters and how it is sent. It is not in logs, events, errors or tool results, and it is not in a project export.
- **Sent to that server only.** Argus sends the key only to the source's own address. If the server answers with a redirect to another address, Argus stops rather than follow it.
- **Rotate or remove.** **Replace key** swaps it (the old one keeps working until the new one is accepted); **Remove key** deletes it and leaves the source needing a key. Removing the source deletes its key too.
- **Needs reconnecting.** If the server later refuses the key (it was revoked or expired), the source is marked **Needs reconnecting** on its row and in a notice above the list. Calls to its tools fail with a clear tool error that names the source and says to reconnect it, instead of silently returning nothing. Choose **Reconnect** and give a new key. A call that works clears the mark.

A key is for a server that takes one fixed secret. A server that signs you in is the next option.

## Servers that sign you in with OAuth

Some servers (many of the large hosted ones) answer an unauthenticated request with a sign-in challenge instead of taking a key. Choose **OAuth sign-in** when you add the server. Argus checks that it can sign in to that server (the server publishes how, with the MCP authorization specification's protected resource metadata) and adds the source **not connected**. Then **Connect** sends you to the server's own sign-in page to approve, and brings you back to the app.

- **What Argus does.** It finds the server's authorization server, registers itself as a client by dynamic client registration, and runs the authorization code flow with PKCE (S256) and a resource indicator, so the token is for that one server. It keeps the refresh token (and the access token until it expires) sealed, and renews access itself shortly before it expires, so runs do not stop at an hour.
- **One connection for the project.** Whoever connects it, the connection is the project's: every call to that source uses it. Connections that act as each person who uses an app are not available yet.
- **What is supported.** Servers whose authorization server offers dynamic client registration, PKCE with S256 and a public client. A server that wants a pre-registered client or a client secret, or that registers clients only by client ID metadata documents (which need Argus to be reachable from the internet), is refused when you add it, with the reason. The deployment must also have a callback address set; if it does not, adding such a source says so.
- **Needs reconnecting.** If the server refuses the connection (it was revoked, or the refresh token expired), the source is marked **Needs reconnecting** like a refused key, calls fail with a clear tool error naming it, and **Reconnect** signs in again. A server that cannot be reached for a moment is not treated as a refusal.
- **Disconnect** deletes the connection Argus holds (it does not revoke it at the server; do that in the server's own settings if you want it gone there too). Removing the source deletes it as well.
- **Confirming it is you.** Connecting, reconnecting and finishing the sign-in each ask you to confirm it is you, as saving a key does.

## Credentials for tool calls

A tool source states how Argus authenticates to it. With an API key, the key you saved is sent to that server and no other. With a service credential, the token is issued for that one server's audience and cached only until shortly before it expires. Acting *as the end user* through a delegated token depends on identity features that are not shipped yet; until they are, Argus refuses such a call rather than falling back to a service credential.

## Evals for agents with client tools

Register an **eval executor** on a client source (`PUT .../tool-sources/{source}/eval-executor` with an https `url` and an eval-only `secret`) and eval runs ask your app for the source's tool calls, with the run and case ids so it can use a scratch project. The API reference has the request and answer. Live sessions still wait for your app.
