---
title: Tools, tokens and the egress guard
summary: How agents reach tools: MCP sources, platform-provided sources, audience-bound service tokens and a guard on every outbound address.
section: architecture
order: 5
---
Tools are where an agent touches the world, so they are where Argus is most careful. Three rules shape this part: access is default-deny, a server's claims about itself are never trusted unless the operator runs the server, and a tenant-chosen address can never lead into the platform's own network.

## Tool sources

A **tool source** is where an agent's tools come from. There are four kinds:

| Kind | What it is | Who runs it |
| --- | --- | --- |
| **MCP server** | A remote server speaking the Model Context Protocol (MCP 2025-11-25, or 2025-06-18) over Streamable HTTP, registered by a project. | The tenant |
| **Client tools** | A manifest whose tools the calling application answers itself. The run parks until the app posts the result. | The tenant's app |
| **Built-in toolsets** | Tools the API serves in-process. Two matter here: `argus.agents.call`, which calls a sub-agent, and `argus.docs`, which searches and reads these documentation pages. | The platform |
| **Platform sources** | A server the operator configures and offers to every project under a reserved name. Today that is `web`. | The platform |

When a source is registered, 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.

### The MCP revision

Argus speaks **MCP 2025-11-25**, the same revision as its identity service, and still works with servers that speak 2025-06-18. In `initialize` it offers 2025-11-25. A server may answer with that revision or with 2025-06-18; Argus then uses the answer for every later request, including the `MCP-Protocol-Version` header. A server that answers with anything else is refused with an error that names the two revisions Argus speaks, and the source stays unusable until the server is upgraded.

What the client does with the revision's changes:

- **Tool results.** Text, images, audio, embedded resources, structured content and `resource_link` blocks are all read. A link is shown to the model as a reference; Argus does not fetch it.
- **Errors in arguments.** From 2025-11-25 a server may report bad arguments as a tool error rather than a protocol error. Argus passes the text to the model so it can correct the call, and still maps the older protocol error.
- **Authorization.** Tokens are audience-bound to the server (RFC 8707 resource indicators) by the token broker, and a refusal (401 or 403) fails the call; nothing is sent unauthenticated.
- **Not offered.** Argus declares no client capabilities. It does not support sampling, elicitation (form or URL), roots, tasks, JSON-RPC batches, the server-to-client event stream or tool icons, and a server that needs them gets no answer. Interactive consent flows (OpenID discovery, client ID metadata documents, incremental scope consent) do not apply, because Argus authenticates as a service with a token it already holds.

### The web and docs sources

**Web search** is a platform-provided source. The web tools are a separate small server, deployed and limited on its own. When the deployment configures it, the API resolves a source named `web` for every project in process, next to the project's own rows. A project needs to register nothing, and its agent definition grants it like any other source:

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

The name `web` is reserved. A project cannot create a source with that name while the platform provides one, so an agent that grants `web` means the same server in every project and a tenant cannot point a platform-trusted name at a server of its own. Where the deployment does not configure it, there is no `web` source and a grant on it gives the agent nothing. Calls are free; the per-project quotas and budgets still apply.

The **docs** tool is a built-in source over a pluggable corpus. The API binary embeds the same Markdown files that build this site, so the assistant reads exactly the pages that are published and cannot drift from them. It ranks sections locally; there is no separate service and no vector index. The assistant that uses it, Ask Argus, ships behind a feature flag that is off by default.

## Default-deny, enforced twice

An agent version lists the tools it may use, per source, as `allow` (run without asking) or `ask` (park for a person's approval before each call). All other tools are hidden from the model and refused if called.

The policy engine enforces this at two points: when the model's tool list is built, so the model only ever sees granted tools, and again on every call before it leaves Argus. Each call records a `tool.policy` event with the decision: allowed, asked, approved or denied.

**Hints are untrusted.** An MCP server can mark a tool read-only. Argus does not rely on that for servers it does not operate. Under a wildcard grant (`allow: ['*']`), a tool runs without approval only if the definition lists it under `read_only`, or if its source is classified by the operator (built-in toolsets, platform sources and servers on the operator's internal list). A tool allowed by name never asks. A changed hint is never accepted as an additive refresh. Approval policy must not depend on a claim made by the party being policed.

## Credentials: the token broker

Tool servers authenticate Argus with short-lived tokens issued by the identity service. The **token broker** holds the rules:

- **Service tokens** come from a client-credentials request to Tessera. Each token is bound to one **audience**, the resource it is for, and is cached only until shortly before it expires.
- **No passthrough.** A token for one server is never sent to another. For a source a tenant registered, the audience must equal the origin of its URL, so a tenant cannot make Argus request a token for one resource and send it to a server of its choosing. The platform's own servers are the exception, and only through an operator allowlist of exact audiences and names. The rule is checked at registration and again before any token is requested.
- **Delegated tokens are planned.** Acting as the end user, through a token exchange with an actor chain, needs identity features that are not shipped yet. Until they are, a delegated source is refused and the broker never falls back to a service token.
- Token values are never logged and never put in an event. Events record only the audience, the subject and the actors.

## The egress guard

Tenants choose URLs that the Argus server then calls: MCP servers, webhook receivers and, through the web tools, pages to fetch. Aimed at the platform's own network, such a URL would turn Argus into a way in. So the check is made at the only place that cannot be tricked: the connect.

- The guard runs on the **socket address just before connect**, after DNS, on every redirect and every retry. A name that resolves to, or rebinds to, a forbidden address is refused.
- It refuses loopback in production, private ranges, link-local, the shared-address range used by the private mesh, cloud metadata, reserved and documentation ranges, and the IPv6 translation ranges.
- It uses no proxy, so there is nothing to bypass.
- Platform tool servers on the private network are allowed only by **exact name** from the operator's list.
- The MCP client and the webhook dispatcher both go through it. Upstream error text is not relayed to the caller, so a probe learns nothing about the network.

The web tools server adds its own guard on the dialled address, restricts ports to web ports, honours `robots.txt`, and caps the size and time of a fetch. It holds no database or model credential, and accepts only a service token from the broker.

## Webhooks

Outbound webhooks go through the same guard and are signed. Inbound triggers are signed with a per-trigger secret that is stored sealed, and an unknown trigger and a forged one answer alike, so the endpoint cannot be used to discover which exist.

## Read next

[Tenancy, identity and security](/docs/architecture/tenancy-and-security.md) covers how projects are kept apart and who is allowed to do what.
