Skip to main content
Glama

aga_revoke_artifact

Revoke active policy artifacts during sessions by transitioning them to TERMINATED or SAFE_STATE states for security policy enforcement.

Instructions

Revoke an active policy artifact mid-session. Supports TERMINATED or SAFE_STATE transition. (NCCoE Phase 3b)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sealed_hashNoSealed hash of artifact to revoke
reasonYesReason for revocation
transition_toNo

Implementation Reference

  • The core handler function for the `aga_revoke_artifact` tool.
    export async function handleRevokeArtifact(args: RevokeArtifactArgs, ctx: ServerContext) {
      const sealedHash = args.sealed_hash ?? ctx.activeArtifact?.sealed_hash;
      if (!sealedHash) return ctx.error('No sealed_hash provided and no active artifact.');
    
      const transition = args.transition_to ?? 'TERMINATED';
      ctx.portal.revoke(sealedHash, transition);
    
      const record: RevocationRecord = {
        artifact_sealed_hash: sealedHash,
        reason: args.reason,
        revoked_by: pkToHex(ctx.issuerKP.publicKey),
        timestamp: utcNow(),
      };
      await ctx.appendToChain('REVOCATION', { ...record, transition_to: transition });
    
      return ctx.json({
        success: true,
        revoked: sealedHash,
        portal_state: ctx.portal.state,
        reason: args.reason,
        transition_to: transition,
      });
    }
  • Input argument interface for the `aga_revoke_artifact` tool.
    export interface RevokeArtifactArgs {
      sealed_hash?: string;
      reason: string;
      transition_to?: 'TERMINATED' | 'SAFE_STATE';
    }
  • src/server.ts:255-265 (registration)
    Registration of the `aga_revoke_artifact` tool in `src/server.ts`, which maps the MCP tool name to `handleRevokeArtifact`.
    // 15. aga_revoke_artifact (governed)
    governedTool('aga_revoke_artifact',
      'Revoke an active policy artifact mid-session. Supports TERMINATED or SAFE_STATE transition. (NCCoE Phase 3b)',
      {
        sealed_hash: z.string().optional().describe('Sealed hash of artifact to revoke'),
        reason: z.string().describe('Reason for revocation'),
        transition_to: z.enum(['TERMINATED', 'SAFE_STATE']).optional(),
      },
      async (args) => handleRevokeArtifact(args, ctx),
    );
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the transition options (TERMINATED or SAFE_STATE) but doesn't explain what these states mean, whether the action is reversible, what permissions are required, or any side effects. For a revocation tool with zero annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise—two sentences with zero wasted words. It's front-loaded with the core purpose and efficiently adds technical context (transition options, NCCoE reference). Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter mutation tool with no annotations and no output schema, the description provides basic purpose and technical constraints but lacks critical context about behavioral outcomes, error conditions, and system impact. It's minimally adequate but has clear gaps given the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67% (2 of 3 parameters have descriptions). The description adds no additional parameter semantics beyond what's in the schema—it doesn't explain what 'sealed_hash' represents, what format 'reason' should take, or the implications of the transition options. With moderate schema coverage, the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('revoke'), target resource ('active policy artifact'), and context ('mid-session'), distinguishing it from siblings like aga_create_artifact (creation) or aga_verify_artifact (verification). It provides a complete verb+resource+scope statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context ('mid-session') but doesn't explicitly state when to use this tool versus alternatives like aga_quarantine_status or aga_rotate_keys. No prerequisites, exclusions, or comparative guidance are provided, leaving usage context somewhat ambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/attestedintelligence/aga-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server