New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

flag_work_item

Flag unresolved work for the next repair and retest, or clear a flag once its reason is resolved. Ordinary failures remain visible and claimable. A FLAG IS NOT A TAG. The tag says how urgent the work is; a flag records an unresolved problem. If a card is merely important, use set_work_item_tag. T...

SERVERAdrata SOURCE@adrata/adrata-mcp
Critical RISK CLASS
Category Destructive
Parameters 00 required
Recommended Hiddensee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/adrata-adrata-mcp/flag-work-item.md

What flag_work_item does on Adrata

AI agents call flag_work_item to permanently remove resources in Adrata, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.

Why flag_work_item is rated Critical

An AI agent that decides to call flag_work_item doesn't hesitate, doesn't double-check, and doesn't stop at one. Whatever it removes from Adrata is gone. There is no undo for destructive operations.

Risk signalsBulk/mass operation — affects multiple targets

Questions about flag_work_item

What does the flag_work_item tool do? +

Flag unresolved work for the next repair and retest, or clear a flag once its reason is resolved. Ordinary failures remain visible and claimable. A FLAG IS NOT A TAG. The tag says how urgent the work is; a flag records an unresolved problem. If a card is merely important, use set_work_item_tag. THE REASON IS REQUIRED IN BOTH DIRECTIONS, and it is not the audit reason — it is the text read on the card. Raising says what failed, what you tried, and what remains to check; clearing says what resolved it. Agents may clear a resolved flag without a human handoff. Both directions append a comment, preserving the original failure and its resolution. A FLAG HANDS THE CARD ON; IT DOES NOT HIDE IT. A failed test or an unsuccessful first repair is not an external hold. Leave it claimable so the next agent can investigate, repair, and independently retest. Clearing a flag does not certify acceptance criteria or replace either QA gate. EVERY FLAG HAS A KIND. criterion_failure (a named criterion failed on a named build; prefer marking the criterion unmet with record_work_item_qa_failure_and_release), env_tooling (never blocks, expires after 24h — but do not flag environment or seat problems at all; record them as a comment), owner_decision (only the owner can answer; the owner is notified), external_dependency (a credential, consent or vendor). Omitted, the server infers external_dependency when blocksClaim is true and criterion_failure otherwise. A REASON IS ONE SENTENCE PLUS THE UNBLOCK STEP, 280 characters at most. Put everything else in detail, which is kept in the flag. It is categorised as a Destructive tool in the Adrata MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.

How do I enforce a policy on flag_work_item? +

Register the Adrata MCP server in PolicyLayer and add a rule for flag_work_item: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Adrata. Nothing to install.

What risk level is flag_work_item? +

flag_work_item is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit flag_work_item? +

Yes. Add a rate_limit block to the flag_work_item rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block flag_work_item completely? +

Set action: deny in the PolicyLayer policy for flag_work_item. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides flag_work_item? +

flag_work_item is provided by the Adrata MCP server (@adrata/adrata-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Adrata, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Adrata's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.