Skip to main content
Glama

mint_create_policy

Create a parametric insurance policy that pays a beneficiary when an oracle confirms a trigger condition, or refunds the insurer at expiry.

Instructions

Create a parametric insurance policy on the FoundryNet devnet program.

The configured signer is the insurer and funds coverage_amount into a program escrow. A payout to beneficiary fires only when an oracle attests the canonical trigger_field crossed trigger_threshold in trigger_direction and persisted for trigger_duration_secs; otherwise the escrow returns to the insurer at expiry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
machineNooptional registered machine pubkey (defaults to the signer).
policy_idYesunique id, ≤ 32 bytes (PDA seed), e.g. "spindle-cnc-12".
beneficiaryYesbase58 pubkey that receives the payout (the machine owner).
trigger_fieldYescanonical field name, e.g. "spindle_load_pct".
premium_amountYesSPL base-unit monthly premium the operator pays.
coverage_amountYesSPL base-unit payout the insurer escrows.
trigger_directionNo0 = above the threshold, 1 = below (default 0).
trigger_thresholdYesscaled threshold, e.g. 9500 for 95.00%.
policy_duration_secsYespolicy length in seconds.
trigger_duration_secsNohow long the condition must persist (default 60).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries full burden. It details that the signer is the insurer, funds coverage into escrow, payout triggers under specific conditions (oracle attestation, threshold, duration), and escrow returns on expiry. This covers key behavioral traits without contradictions.

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?

The description is a single paragraph with three sentences: purpose, mechanism, and fallback. It is front-loaded and concise, though slightly dense. Every sentence adds value, earning a 4.

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

Completeness5/5

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

Given 10 parameters with 100% schema coverage and an output schema present, the description explains the full policy lifecycle (creation, trigger conditions, expiry). It covers all essential behavioral aspects, making it fully complete for the tool's context.

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 baseline is 3. The description adds high-level context (e.g., 'insurer escrows coverage_amount') but does not significantly enhance parameter meaning beyond the schema descriptions. It meets the baseline.

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 'Create a parametric insurance policy on the FoundryNet devnet program,' specifying the verb (create), resource (parametric insurance policy), and context (devnet). It distinguishes from sibling tools like mint_settle_policy and mint_attest by focusing on creation.

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 explains when to use the tool (to create a parametric policy) but does not explicitly state when not to use it or provide alternatives. Sibling tool names imply alternatives, but the description lacks explicit guidance for tool 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/FoundryNet/mint-mcp'

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