# K-2SO Agent Decision Procedure: Pre-Transaction Token Contract Safety Screening

> K-2SO Agent Decision Procedure: Pre-Transaction Token Contract Safety Screening is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns a paid LLM-generated decision procedure brief guiding an AI agent through pre-transaction safety screening of a token contract before executing a trade or transfer.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/agent-decision-procedure-for-pre-transaction-tok
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/k-2so-agent-decision-procedure-pre-transaction-token-contract-safety-acbbe843
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dKji7yfMe2stC5oNteZFU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability k-2so-agent-decision-procedure-pre-transaction-token-contract-safety-acbbe843
```

Example prompt: Give me a decision procedure for screening a token contract for safety before my agent executes a transaction — I want the full step-by-step reasoning brief an autonomous agent should follow.

## When to prefer this

Choose this endpoint when an autonomous agent needs a ready-made, LLM-generated decision procedure specifically for pre-transaction token contract safety screening — particularly in x402 pay-per-call pipelines on Base where no account setup is desired. Prefer over static checklists when you want reasoning-model-quality prose that adapts to topic overrides. Best suited for agents operating in DeFi or on-chain contexts that need structured risk guidance without building their own screening logic.

## Known failure modes

- HTTP 402 returned if USDC payment not yet settled — agent must pay exact $0.002 USDC and retry with PAYMENT-SIGNATURE header
- Payment signature mismatch or replay results in 402 rejection
- Invalid or unsupported HTTP method returns error
- LLM generation failure may result in ok:false with empty brief
- Network timeout on Base blockchain settlement delays retry loop
- meta=1 returns free metadata JSON but no decision procedure content

## How this service works

Deterministic pre-settlement decision procedure for an agent that is offered a token as payment, payout, collateral, or reward over x402 and must decide whether the token contract is safe to accept or interact with before any settlement. Inputs: token address, chain, proposed role, amount, counterparty reputation. Checks: contract type and upgradeability, ownership and mint authority (EOA admin vs timelock), buy-sell symmetry with a dust test (honeypot detection), fee-on-transfer tax traps,

## Output

A JSON object containing a 120+ word plain-prose decision procedure brief (field: `brief`/`procedure`) that an AI agent can follow step-by-step to evaluate a token contract's safety before a transaction. Includes the LLM model used, generation source (llm/reasoning/deterministic), ISO-8601 timestamp, topic, service slug, provider name (K-2SO), and payment confirmation fields (payer, transaction hash, selfPay flag).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      },
      "topic": {
       "type": "string",
       "description": "Optional topic override for the decision procedure"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "Agent decision procedure for pre-transaction token contract safety screening paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "brief": {
         "type": "string",
         "description": "Decision procedure prose for agents"
        },
        "model": {
         "type": "string"
        },
        "topic": {
         "type": "string"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "procedure": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "generationSource": {
         "enum": [
          "llm",
          "reasoning",
          "deterministic"
         ],
         "type": "string"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
   
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "brief": "plain prose decision procedure (120+ words)",
   "model": "deepseek/deepseek-v4-flash-0731",
   "topic": "string topic",
   "service": "agent-decision-procedure-for-pre-transaction-tok",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "agent-decision-procedure-for-pre-transaction-tok",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/k-2so-agent-decision-procedure-pre-transaction-token-contract-safety-acbbe843/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
