Skip to main content
Glama

MINT Protocol — Universal Work Attestation

Mint Create Policy

mint_create_policy

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

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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the signer is the insurer, that coverage_amount is escrowed, that payout depends on oracle attestation and persistence, and that escrow returns to the insurer at expiry otherwise. It does not describe permissions, failure modes, or limits, which keeps it from a 5.

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 front-loaded with the action and then explains funding, payout trigger, and fallback in a compact sequence. Every sentence contributes to understanding the tool's behavior, with no boilerplate or repetition.

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

Completeness4/5

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

For a 10-parameter financial escrow tool with an output schema and full schema descriptions, the description covers the essential create-time behavior: insurer role, escrow funding, payout condition, and expiry refund. It lacks linkage to the settlement lifecycle and related tools, but nothing critical for invoking create correctly is missing.

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?

Schema coverage is already 100%, so the baseline is 3, but the description adds meaningful semantic relationships: coverage_amount is escrowed by the insurer, beneficiary receives payout, and trigger_field/trigger_threshold/trigger_direction/trigger_duration_secs jointly define the payout condition. Not every parameter is elaborated, but the key economic parameters gain context beyond the schema.

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 states a specific verb and resource ('Create a parametric insurance policy') and explains the core economic mechanism, which is more than a restatement of the name. It does not explicitly distinguish the tool from policy-related siblings like mint_settle_policy, so sibling differentiation is only implicit.

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 gives clear context for what creating a policy entails, including that the configured signer acts as insurer and funds escrow. However, it provides no explicit when-to-use guidance, no exclusions, and does not name or route to alternatives such as mint_settle_policy for subsequent settlement.

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.