Skip to main content
Version: 1.68

Agents

The Agents page brings your AI agents into one place for monitoring and governance. Register an agent, describe its intended purpose, and send traces to understand its sessions, model usage, and tool calls. Agents can be optionally linked to a Deeploy-managed Deployment.

You can register agents in the Deeploy interface, via API, through the MCP server, or with the Python client.

Agent overview​

An agent has:

  • A name, unique within its Workspace.
  • An owner, who can manage the agent. When you register an agent manually, you become its owner.
  • An optional intended purpose, such as "Resolve support tickets".
  • Observability data derived from incoming traces, including the platforms and models used and the start time of its latest session.
  • Optional tags and a link to a use case. Agents linked to a use case can also be linked to Deployments belonging to that use case.

Agents are listed on the Agents page of a Workspace, where you can filter by name, tag, platform, model, use case, and whether an agent is linked to a use case or not.

Registering a new agent​

Workspace owners and operators can register agents from the Workspace's Agents page:

  1. Select Add new, then Register a new agent.
  2. Enter a name and, optionally, an intended purpose.
  3. Optionally select an existing use case or choose Create a use case. Leave the agent unlinked if it is not yet associated with a use case.
  4. If you selected a use case, optionally select one or more of its Deployments.
  5. Optionally add tags, then select Register.

Registration alone does not collect data. A newly registered agent has no sessions or usage data until it sends traces.

Registering agents through MCP​

Use the Deeploy MCP server to register and trace agents from an MCP-compatible platform, such as an AI coding assistant.

  1. Connect your platform to the Deeploy MCP server.
  2. Authenticate with scoped OAuth credentials, or use identity-provider login if your administrator has configured it. See Authentication and permissions.
  3. Follow the system-instruction guidance and use the Deeploy autoregistration skill to guide registration and tracing.

The registration flow asks you to select a Workspace and an agent name. It reuses an existing registration with the same name rather than creating a duplicate. Once registered, the agent sends interaction traces through send_trace.

New agents registered through MCP are initially unlinked. Link them to a use case in the Deeploy interface when they are ready for governance.

Sending traces​

After registering an agent, send its OpenTelemetry traces to:

POST https://api.<domain>/workspaces/<workspaceId>/agents/<agentId>/traces

Authenticate using scoped OAuth credentials that include Agent Write (agentWrite). The corresponding user must also have permission to send traces; selecting the scope does not grant that permission by itself.

Linking to a use case​

You can link an agent during manual registration or later by editing its details. This brings the agent into the same governance context as the use case's other resources.

The agent inherits the use case's risk classification, not its owner. Agent ownership is managed separately. Linking or unlinking an existing agent requires permission to edit that agent.

Linking is not possible from MCP itself. If an agent registers itself via MCP, you link it to a use case afterwards from the UI. Once an agent is linked to a use case, the MCP server's update tool (patch_agent) refuses to modify it, to prevent an external agent from silently unlinking itself or changing its details — unlinking and further edits then have to happen in the UI.

Once an agent is linked to a use case, you can also link it to one or more Deployments belonging to that use case, tying its traced behavior to the models it relies on.

Authentication and permissions​

In the Deeploy interface, your account's Workspace role and Agent ownership determine which actions are available. Workspace owners can edit owner of any agent in their Workspace. Operators can register agents and edit agents they own. Deleting an agent requires Agent ownership; permission to edit an agent does not by itself grant permission to delete it.

For the full permissions table, see Agent permissions.

OAuth credentials never grant more permissions than their creating user has. Both the selected scopes and any Workspace restrictions apply. For example, an operator's credential with Agent Write can register an agent, but cannot edit another user's agent solely because it has that scope.

For MCP clients, follow the connection instructions. Identity-provider login is available only when configured by your administrator; see Identity provider login.

Agent page​

Selecting an agent opens its detail page, with Overview, Tool calls, and Sessions tabs.

Overview​

The Overview tab shows the agent's details, including its name, intended purpose, owner, linked use case, and tags. Select a date range to view the number of sessions, unique users, total tokens, and average tokens per session. Session, user, and total-token counts are compared with the preceding period. These metrics are derived from commonly used field names. If the reported data omits these fields or uses different names, the metrics may be unavailable.

The overview also lists recent sessions and the most frequently used tools. These values reflect the data reported by the agent's instrumentation; missing attributes can leave fields unavailable.

From here you can also edit the agent's name, intended purpose, and use case/Deployment/tag links, or delete the agent, depending on your permissions.

Tool calls​

This tab aggregates the tool calls recorded across all of the agent's traces, showing how often each tool was used. Because tool-call information is read from whatever a single trace span reports, an interaction that records multiple tool calls within one span may not have each call broken out individually.

Sessions​

Each session summary represents a trace and combines information from its root span and child spans. Whether a trace represents a single interaction, a conversation, or a complete run depends on your instrumentation.

The Sessions tab lists the user, start time, duration, models, tokens, and tools reported for each session. Use the date range and filters to narrow the results.

Inspecting a session​

Select a session to open its trace details. You can inspect the recorded spans and their attributes, including model and platform information, token usage, tool calls, and input/output content when reported. Deeploy can only display interactions and attributes included in the trace; registration does not automatically instrument an agent.