# Material Discovery Service Spend Gate

> Material Discovery Service Spend Gate is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-27).

Returns a pay/defer/refuse verdict with explicit thresholds for agents evaluating whether to spend on AI materials-discovery services like Discovered Materials

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/launch-hn-discovered-materials-yc-p26-ai-agents?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/material-discovery-service-spend-gate-f3013e31
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YiyRuMe97xXMYa2U8EzS7

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 material-discovery-service-spend-gate-f3013e31
```

Example prompt: Before my agent pays for a Discovered Materials run, give me the spend-gate verdict — the hypothesis looks moderately strong, we have 50 candidates queued, each run costs $0.05, our iteration budget is 10 runs, and I need machine-checkable output as the success marker.

## When to prefer this

Use this endpoint when an autonomous agent needs a structured, explicit decision framework before paying for AI-driven materials discovery services — especially when the agent cannot independently verify output quality, needs iteration budget governance, or requires documented refusal conditions for auditing. Prefer this over general spend-rate anomaly gates when the specific domain is scientific/materials discovery and you need hypothesis-strength and candidate-count aware thresholds.

## Known failure modes

- Service returns non-200 if payment via x402 is not attached (HTTP 402 Payment Required)
- Malformed query params may return a 400 or empty procedure
- If the topic override is unrecognized, the service may fall back to a generic materials discovery procedure
- LLM-backed generation could time out or return a truncated brief
- The meta=1 free metadata call returns schema info only, not a spend verdict

## How this service works

Decision procedure for agents evaluating AI materials-discovery services (Discovered Materials and similar). Inputs: hypothesis strength, candidate count, per-run price, iteration budget, downstream success marker. Outputs: pay, defer, or refuse verdict with explicit thresholds: validation gates before first payment, iteration limits before budget escalation, evidence retention requirements, and refusal conditions when the service cannot produce machine-checkable outputs. Blunt gate, not

## Output

A JSON object containing a pay/defer/refuse verdict ('brief' and 'procedure' fields with 120+ words of decision prose), the service slug, provider name, generation source (llm/reasoning/deterministic), and an ISO-8601 timestamp. The procedure includes explicit validation gates before first payment, iteration limits before budget escalation, evidence retention requirements, and refusal conditions when machine-checkable outputs are unavailable.

## 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": "Material Discovery Service Spend Gate 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": {
         "type": "string"
        },
     
… (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": "launch-hn-discovered-materials-yc-p26-ai-agents",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "launch-hn-discovered-materials-yc-p26-ai-agents",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/material-discovery-service-spend-gate-f3013e31/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)
