You're viewing a demo portfolio

Join the waitlist
PRSM

create_intent

Active

Tool of SimpleFunctions

declared in 1.0.0

Declare an execution intent: "buy X when condition Y, expire at Z." Intents are the single gateway for all order execution. The local runtime daemon evaluates triggers and executes via user's Kalshi/Polymarket keys.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "apiKey",
    "action",
    "venue",
    "marketId",
    "marketTitle",
    "direction",
    "targetQuantity"
  ],
  "properties": {
    "venue": {
      "enum": [
        "kalshi",
        "polymarket"
      ],
      "type": "string",
      "description": "Exchange venue"
    },
    "action": {
      "enum": [
        "buy",
        "sell"
      ],
      "type": "string",
      "description": "Trade action"
    },
    "apiKey": {
      "type": "string",
      "description": "SimpleFunctions API key. Get one at https://simplefunctions.dev/dashboard/keys"
    },
    "source": {
      "type": "string",
      "default": "agent",
      "description": "Intent source: agent, manual, idea"
    },
    "expireAt": {
      "type": "string",
      "description": "ISO timestamp when intent expires (default: +24h)"
    },
    "marketId": {
      "type": "string",
      "description": "Market ticker (e.g. KXFEDDEC-25DEC31-T100)"
    },
    "maxPrice": {
      "type": "number",
      "description": "Max price per contract in cents (1-99). Omit for market order."
    },
    "sourceId": {
      "type": "string",
      "description": "Source reference (idea ID, thesis ID, etc.)"
    },
    "direction": {
      "enum": [
        "yes",
        "no"
      ],
      "type": "string",
      "description": "Contract direction"
    },
    "rationale": {
      "type": "string",
      "description": "Why this trade — logged for audit trail"
    },
    "autoExecute": {
      "type": "boolean",
      "default": false,
      "description": "Auto-execute without later human confirmation. Defaults to false unless explicitly set true."
    },
    "marketTitle": {
      "type": "string",
      "description": "Human-readable market name"
    },
    "triggerType": {
      "enum": [
        "immediate",
        "price_below",
        "price_above",
        "time"
      ],
      "type": "string",
      "default": "immediate",
      "description": "When to execute"
    },
    "triggerPrice": {
      "type": "number",
      "description": "Price trigger threshold in cents (for price_below/price_above)"
    },
    "targetQuantity": {
      "type": "number",
      "description": "Number of contracts"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.70.

Parent server

SimpleFunctions

https://github.com/spfunctions/simplefunctions-cli

2/7 registries
View full server →