Skip to main content
Glama

generate_agent_repo_policy

Gera uma política JSON estruturada descrevendo as restrições e regras que o código de um Agente de IA deve provar via ZK-SP1 (ex: sem vazamento de chaves, acesso restrito).

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": {
      "agentName": "<agentName>",
      "domain": "<domain>"
    },
    "name": "generate_agent_repo_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDomínio de atuação do agente
agentNameYesNome do agente autônomo
requiredPermissionsNoPermissões que o agente solicita (ex: ["READ_WALLET", "EXECUTE_TRADE"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 full burden. It does add real behavioral substance by explaining what the artifact is — a JSON policy of ZK-SP1-provable constraints rather than a plain document — but it omits whether the policy is persisted, registered on-chain, validated, or merely returned, which matters given siblings like register_retention_policy_onchain.

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?

A single front-loaded sentence with no filler; the core artifact and its mechanism (ZK-SP1 provability) come first. It is dense with domain jargon and packs the examples into the same sentence, but nothing is wasted.

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 three-parameter generation tool with no output schema and no annotations, the description is only minimally sufficient: it explains what is produced but not the shape of the returned policy, whether generation implies storage, or how it relates to the verification step. The well-documented input schema compensates for part of the gap.

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 100%, so agentName, domain (with its enum), and requiredPermissions are already documented in the schema. The description adds no parameter-level detail beyond the illustrative rule examples, which loosely map to requiredPermissions but give no format guidance. Baseline 3 is appropriate.

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?

States a concrete verb and artifact: it generates a structured JSON policy describing the restrictions an AI agent's code must prove via ZK-SP1, with examples of rule types (no key leakage, restricted access). This distinguishes it from a verifier like verify_agent_repo_zk_proof, but the description never names or contrasts any sibling generator (privacy, security, retention policies), leaving differentiation to the reader.

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?

There is no statement of when to call this tool versus the many sibling generators, nor any prerequisite (e.g., must the agent already exist, must permissions be known up front). The purpose is inferable from the sentence, but the agent is given no routing criteria among a crowded generator family.

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