Skip to main content
Glama

aga_export_bundle

Package artifacts, receipts, and Merkle proofs for offline verification to ensure tamper-evident continuity and cryptographic attestation.

Instructions

Package artifact + receipts + Merkle proofs for offline verification. (Claim 9)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the `aga_export_bundle` tool. It retrieves the latest artifact, checkpoint, and receipts, generates inclusion proofs, and creates a bundle for offline verification.
    export async function handleExportBundle(_args: Record<string, never>, ctx: ServerContext) {
      const artifact = await ctx.storage.getLatestArtifact();
      if (!artifact) return ctx.error('No artifact');
      const cp = await ctx.storage.getLatestCheckpoint();
      if (!cp) return ctx.error('No checkpoint. Call aga_create_checkpoint first.');
      const receipts = await ctx.storage.getReceiptsByArtifact(hashArtifact(artifact));
      const batchEvents = await ctx.storage.getEvents(cp.batch_start_sequence, cp.batch_end_sequence);
      const proofs = receipts
        .filter(r => r.sequence_number >= cp.batch_start_sequence && r.sequence_number <= cp.batch_end_sequence)
        .map(r => eventInclusionProof(batchEvents, r.sequence_number));
      const bundle = generateBundle(artifact, receipts, proofs, cp, ctx.portalKP);
      return ctx.json({
        success: true,
        bundle,
        offline_verifiable: true,
        receipt_count: receipts.length,
        proof_count: proofs.length,
      });
    }
  • src/server.ts:200-205 (registration)
    The registration of the `aga_export_bundle` tool within the MCP server using the `governedTool` helper.
    // 10. aga_export_bundle (governed)
    governedTool('aga_export_bundle',
      'Package artifact + receipts + Merkle proofs for offline verification. (Claim 9)',
      {},
      async () => handleExportBundle({} as any, ctx),
    );
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a read-only packaging operation but doesn't detail aspects like whether it requires authentication, its rate limits, or what the output format looks like (e.g., file type, structure). This is inadequate for a tool with no annotation coverage.

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 a single, efficient sentence that directly states the tool's function. It's front-loaded with the core action and includes a specific reference ('Claim 9'), making it zero-waste and well-structured for quick understanding.

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?

Given the tool has 0 parameters, no output schema, and no annotations, the description is minimally adequate. It explains what the tool does but lacks details on behavioral traits, usage context, or output format, which are gaps considering the complexity implied by terms like 'Merkle proofs' and 'offline verification'.

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

Parameters4/5

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

The tool has 0 parameters, and the schema description coverage is 100%, so the description doesn't need to compensate for missing parameter info. It appropriately focuses on the tool's purpose without redundant parameter details, earning a baseline high score for this context.

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

Purpose4/5

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

The description clearly states the tool's purpose: to package artifacts, receipts, and Merkle proofs for offline verification. It specifies the verb 'package' and the resources involved, though it doesn't explicitly differentiate from sibling tools like 'aga_verify_bundle' or 'aga_generate_receipt', which keeps it from a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It mentions 'offline verification' but doesn't specify prerequisites, timing, or exclusions relative to siblings such as 'aga_verify_artifact' or 'aga_verify_bundle', leaving the agent with minimal context for selection.

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