# Tag Resources

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [agentic-data-plane-full.txt](https://docs.redpanda.com/agentic-data-plane-full.txt)

---
title: Tag Resources
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.117.0
latest-redpanda-tag: v26.2.6
docname: tags
page-component-name: agentic-data-plane
page-version: master
page-component-version: master
page-component-title: Agentic Data Plane
page-relative-src-path: tags.adoc
page-edit-url: https://github.com/redpanda-data/adp-docs/edit/main/modules/control/pages/tags.adoc
description: Label Agentic Data Plane resources with key/value tags so access policies, spend reports, and list filters can act on a whole team or environment.
page-topic-type: concepts
personas: platform_engineer, security_compliance_lead
learning-objective-1: Identify which Agentic Data Plane resources carry tags and where to set them
learning-objective-2: Distinguish how Agentic Data Plane uses tags in access policies, cost allocation, shared budgets, and list filters
learning-objective-3: Choose tag keys that serve both access control and cost reporting
page-git-created-date: "2026-10-22"
page-git-modified-date: "2026-11-12"
page-generated-content: none
---

<!-- Source: https://docs.redpanda.com/agentic-data-plane/control/tags.md -->

Tags let access policies and spend reports act on a whole team, environment, or cost center instead of on a list of individual resource names. A tag is a key/value label, such as `team=payments` or `env=prod`, that you attach to a Redpanda Agentic Data Plane resource. The payments team’s policy covers a new agent tagged `team=payments`, and the agent appears in the payments spend report as soon as you create it.

After reading this page, you will be able to:

-   Identify which Agentic Data Plane resources carry tags and where to set them

-   Distinguish how Agentic Data Plane uses tags in access policies, cost allocation, shared budgets, and list filters

-   Choose tag keys that serve both access control and cost reporting


## [](#resources-that-carry-tags)Resources that carry tags

Set tags when you create a resource or edit it later. Each resource’s page describes its `Tags` field.

| Resource | In the UI | With rpk ai |
| --- | --- | --- |
| Agents | Yes | --tag on rpk ai agent create and rpk ai agent update |
| MCP servers | Yes | --tags on rpk ai mcp-server create and rpk ai mcp-server update |
| LLM providers | Yes | --tags on rpk ai llm-provider create and rpk ai llm-provider update |
| Guardrails | Yes | No |
| Budgets | Yes | No |
| Secrets | Yes | --tag on rpk ai secret create and rpk ai secret update, and --remove-tag on rpk ai secret update |

[OAuth clients](https://docs.redpanda.com/home/glossary/#oauth-client), [OAuth providers](https://docs.redpanda.com/home/glossary/#oauth-provider), and access policies also carry tags that policy conditions can read. You can’t set them in the UI or with `rpk ai`. See [Attribute reference](https://docs.redpanda.com/agentic-data-plane/control/access-policies/#attribute-reference) for the full list.

## [](#limits-and-rules)Limits and rules

-   A resource holds at most 50 tags, and each value can be up to 256 characters.

-   In the UI, every tag needs both a key and a value, and adding a key the resource already has replaces that key’s value.

-   An update replaces the whole set of tags. When you edit tags, keep the pairs you want.

-   Don’t put secrets or personal data in tags. Tags appear in lists, in policy evaluation, and in spend data.


For the limits on every resource, see [Limits and Defaults](https://docs.redpanda.com/agentic-data-plane/reference/limits/).

## [](#how-agentic-data-plane-uses-tags)How Agentic Data Plane uses tags

One set of tags can control access, attribute cost, scope shared budgets, and filter lists at the same time. A tag that none of these read only organizes. A budget’s own tags, for example, don’t change which agents the budget covers.

### [](#in-access-policies)In access policies

An [access policy](https://docs.redpanda.com/agentic-data-plane/control/access-policies/) can permit or forbid an action based on a resource’s tags, with conditions such as `resource.hasTag("team") && resource.getTag("team") == "payments"`. Lists of agents, MCP servers, and LLM providers return only the resources the caller’s policies allow, so a team granted access by tag sees its own resources and nothing else. See [Give a team access to its own resources](https://docs.redpanda.com/agentic-data-plane/control/permissions-overview/#give-a-team-access-to-its-own-resources) for a worked example, and [Write conditions](https://docs.redpanda.com/agentic-data-plane/control/access-policies/#write-conditions) for the rules every tag condition follows.

A tag on an agent or an MCP server also reaches its child resources, such as the agent’s [transcripts](https://docs.redpanda.com/home/glossary/#transcript) and the server’s [tools](https://docs.redpanda.com/home/glossary/#tool). A tag condition on a tool call, for example, matches the tags of the tool’s MCP server. See [Attribute reference](https://docs.redpanda.com/agentic-data-plane/control/access-policies/#attribute-reference) for every type that reads its parent’s tags.

### [](#in-cost-allocation)In cost allocation

Every LLM call an agent makes records the agent’s tags with its [spending event](https://docs.redpanda.com/home/glossary/#spending-event), as they were when the call ran. You can then group and filter spend by tag. Agentic Data Plane records only the calling agent’s tags, not the tags on its LLM provider or MCP servers, and a call that doesn’t come from an agent records none. See [Track Spend by Tag](https://docs.redpanda.com/agentic-data-plane/control/cost-allocation-tags/).

### [](#in-shared-budgets)In shared budgets

A shared budget scoped by agent tags gives one spending limit to every agent whose tags match, such as all agents tagged `team=payments`. It counts spend by the tags an agent carried when it made each call, the same tags cost allocation records. See [Shared budgets for tagged agents or a provider](https://docs.redpanda.com/agentic-data-plane/control/budgets/#shared-budgets).

### [](#in-lists-and-filters)In lists and filters

The lists of agents, MCP servers, LLM providers, guardrails, and secrets show each resource’s tags. The agents and secrets lists also have a `Tag` filter that matches a `key=value` pair, such as `team=payments`.

## [](#choose-tag-keys)Choose tag keys

Pick a small set of keys and use them the same way on every resource type:

-   Use the same key, such as `team`, on agents, MCP servers, and LLM providers. One access policy and one spend report can then cover a team’s whole footprint.

-   Keep values lowercase and stable. A condition compares values exactly, so `Payments` and `payments` are different teams.

-   Tag at creation. A resource without the tag falls outside every policy and report that relies on it, and a team doesn’t see it in its lists.


## [](#next-steps)Next steps

-   [Give a team access to its own resources](https://docs.redpanda.com/agentic-data-plane/control/permissions-overview/#give-a-team-access-to-its-own-resources)

-   [Manage Access Policies](https://docs.redpanda.com/agentic-data-plane/control/access-policies/)

-   [Track Spend by Tag](https://docs.redpanda.com/agentic-data-plane/control/cost-allocation-tags/)