Skip to main content
Glama

register_retention_policy_onchain

Registra on-chain (dpo2u-solana compliance-registry) uma política de retenção previamente gerada. Âncora CID Lighthouse + content hash como Attestation PDA. Usa create_attestation (sem ZK) porque retention policies são públicas.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cid": "<cid>",
      "contentHash": "<contentHash>"
    },
    "name": "register_retention_policy_onchain"
  }
}

Input Schema

NameRequiredDescriptionDefault
cidYesCID Lighthouse da policy
clusterNoTarget cluster
schemaIdNoSchema pubkey base58 (opcional)
expiresAtNoUnix timestamp de expiração (opcional)
contentHashYessha256 hex de 64 chars (32 bytes)
subjectPubkeyNoCompany pubkey base58 (default: issuer)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It does disclose the mechanism (CID Lighthouse + content hash anchored as an Attestation PDA) and the deliberate no-ZK choice, which is genuinely useful behavior context. It omits wallet/fee requirements, irreversibility of an on-chain write, and behavior on duplicate registration, which matter for a mutation tool.

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

Conciseness4/5

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

Three compact sentences: what it does, how it anchors, and the rationale for skipping ZK. Front-loaded and free of filler, though the dense jargon (CID, PDA, Attestation) assumes domain familiarity.

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 mutation tool with no annotations and no output schema, the description covers the what, where, and why but not the operational contract (signer identity, fees, return value such as PDA/tx signature, or failure modes). Parameter coverage is fully handled by the schema, so the remaining gap is behavioral rather than structural.

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 coverage is 100%, so all six parameters are already documented in the schema, giving a baseline of 3. The description only re-states that the CID is a Lighthouse CID and the content hash is anchored, adding little meaning beyond what the schema fields already say.

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?

States a specific verb and resource (registers a previously generated retention policy on-chain) plus the exact target program (dpo2u-solana compliance-registry). The word 'previamente gerada' implicitly routes the agent to generate_retention_policy first, so the tool is distinguishable from its sibling without opening schemas.

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

Usage Guidelines4/5

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

Provides a clear precondition: the policy must already exist, and it explains why attestation is done without ZK (policies are public). It stops short of naming when-not conditions or explicit alternatives among the registration siblings (register_ccpa_optout, verify_corpus_manifest_onchain).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources