{
  "x402Version": 2,
  "id": 32366,
  "slug": "32366",
  "resource": "https://redlynr.com/run",
  "description": "Agent guardrail decision engine. Call once before every agent action; returns a single decision — proceed, slow down (with a reason and wait time), or stop — based on cost budget, chain depth, step cap and retry budget, and request volume pressure. Policy thresholds are configured separately via /policy; this endpoint only reports the decision for a single action.",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x1A9a7C72208ABf3552750eB1C4a4F2cA9e8733E5",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "checks": {
            "properties": {
              "chain_depth": {
                "properties": {
                  "current": {
                    "type": "integer"
                  },
                  "limit": {
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "cost": {
                "properties": {
                  "limit": {
                    "type": "number"
                  },
                  "spent": {
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "paused": {
                "type": "boolean"
              },
              "steps_retries": {
                "properties": {
                  "retries": {
                    "type": "integer"
                  },
                  "retry_limit": {
                    "type": "integer"
                  },
                  "step_limit": {
                    "type": "integer"
                  },
                  "steps": {
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "volume": {
                "properties": {
                  "blocking": {
                    "type": "boolean"
                  },
                  "pct_used": {
                    "type": "number"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "decision": {
            "enum": [
              "proceed",
              "slow_down",
              "stop"
            ],
            "type": "string"
          },
          "reason": {
            "description": "e.g. agent_paused, retries_exhausted, cost_budget_exceeded, chain_depth_exceeded, step_cap_exceeded, volume_pressure_blocked",
            "type": [
              "string",
              "null"
            ]
          },
          "wait_seconds": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "agent_id": "agent_42",
            "chain_id": "chain_abc123",
            "is_retry": false,
            "step_cost": 0.02,
            "tenant_id": "acme_corp"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "checks": {
              "chain_depth": {
                "current": 3,
                "limit": 10
              },
              "cost": {
                "limit": 50,
                "spent": 12.4
              },
              "paused": false,
              "steps_retries": {
                "retries": 0,
                "retry_limit": 3,
                "step_limit": 25,
                "steps": 7
              },
              "volume": {
                "blocking": false,
                "pct_used": 42
              }
            },
            "decision": "proceed",
            "reason": null,
            "wait_seconds": null
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "agent_id": {
                    "description": "Identifies the specific agent, used for pause/retry tracking",
                    "type": "string"
                  },
                  "chain_id": {
                    "description": "Identifies the specific agent chain/task, used for depth/step tracking",
                    "type": "string"
                  },
                  "is_retry": {
                    "description": "Set true if this call represents a retry of a previous failed step (default false)",
                    "type": "boolean"
                  },
                  "step_cost": {
                    "description": "Cost of this step in USD, must be >= 0 (default 0)",
                    "type": "number"
                  },
                  "tenant_id": {
                    "description": "Identifies the customer account; policy and counters are scoped to this",
                    "type": "string"
                  }
                },
                "required": [
                  "tenant_id",
                  "agent_id",
                  "chain_id"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "checks": {
                    "properties": {
                      "chain_depth": {
                        "properties": {
                          "current": {
                            "type": "integer"
                          },
                          "limit": {
                            "type": "integer"
                          }
                        },
                        "type": "object"
                      },
                      "cost": {
                        "properties": {
                          "limit": {
                            "type": "number"
                          },
                          "spent": {
                            "type": "number"
                          }
                        },
                        "type": "object"
                      },
                      "paused": {
                        "type": "boolean"
                      },
                      "steps_retries": {
                        "properties": {
                          "retries": {
                            "type": "integer"
                          },
                          "retry_limit": {
                            "type": "integer"
                          },
                          "step_limit": {
                            "type": "integer"
                          },
                          "steps": {
                            "type": "integer"
                          }
                        },
                        "type": "object"
                      },
                      "volume": {
                        "properties": {
                          "blocking": {
                            "type": "boolean"
                          },
                          "pct_used": {
                            "type": "number"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "decision": {
                    "enum": [
                      "proceed",
                      "slow_down",
                      "stop"
                    ],
                    "type": "string"
                  },
                  "reason": {
                    "description": "e.g. agent_paused, retries_exhausted, cost_budget_exceeded, chain_depth_exceeded, step_cap_exceeded, volume_pressure_blocked",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "wait_seconds": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "redlynr.com",
  "lastUpdated": "2026-10-12T09:00:12.838Z",
  "quality": {
    "calls30d": 7,
    "uniquePayers30d": 6,
    "lastCalledAt": "2026-10-12T09:00:12.264Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "agent_id": "agent_42",
              "chain_id": "chain_abc123",
              "is_retry": false,
              "step_cost": 0.02,
              "tenant_id": "acme_corp"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "checks": {
                "chain_depth": {
                  "current": 3,
                  "limit": 10
                },
                "cost": {
                  "limit": 50,
                  "spent": 12.4
                },
                "paused": false,
                "steps_retries": {
                  "retries": 0,
                  "retry_limit": 3,
                  "step_limit": 25,
                  "steps": 7
                },
                "volume": {
                  "blocking": false,
                  "pct_used": 42
                }
              },
              "decision": "proceed",
              "reason": null,
              "wait_seconds": null
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "agent_id": {
                      "description": "Identifies the specific agent, used for pause/retry tracking",
                      "type": "string"
                    },
                    "chain_id": {
                      "description": "Identifies the specific agent chain/task, used for depth/step tracking",
                      "type": "string"
                    },
                    "is_retry": {
                      "description": "Set true if this call represents a retry of a previous failed step (default false)",
                      "type": "boolean"
                    },
                    "step_cost": {
                      "description": "Cost of this step in USD, must be >= 0 (default 0)",
                      "type": "number"
                    },
                    "tenant_id": {
                      "description": "Identifies the customer account; policy and counters are scoped to this",
                      "type": "string"
                    }
                  },
                  "required": [
                    "tenant_id",
                    "agent_id",
                    "chain_id"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "checks": {
                      "properties": {
                        "chain_depth": {
                          "properties": {
                            "current": {
                              "type": "integer"
                            },
                            "limit": {
                              "type": "integer"
                            }
                          },
                          "type": "object"
                        },
                        "cost": {
                          "properties": {
                            "limit": {
                              "type": "number"
                            },
                            "spent": {
                              "type": "number"
                            }
                          },
                          "type": "object"
                        },
                        "paused": {
                          "type": "boolean"
                        },
                        "steps_retries": {
                          "properties": {
                            "retries": {
                              "type": "integer"
                            },
                            "retry_limit": {
                              "type": "integer"
                            },
                            "step_limit": {
                              "type": "integer"
                            },
                            "steps": {
                              "type": "integer"
                            }
                          },
                          "type": "object"
                        },
                        "volume": {
                          "properties": {
                            "blocking": {
                              "type": "boolean"
                            },
                            "pct_used": {
                              "type": "number"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    "decision": {
                      "enum": [
                        "proceed",
                        "slow_down",
                        "stop"
                      ],
                      "type": "string"
                    },
                    "reason": {
                      "description": "e.g. agent_paused, retries_exhausted, cost_budget_exceeded, chain_depth_exceeded, step_cap_exceeded, volume_pressure_blocked",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "wait_seconds": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "redlynr.com",
    "manifest_name": "redlynr.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "checks": {
        "chain_depth": {
          "current": 0,
          "limit": 0
        },
        "cost": {
          "limit": 0,
          "spent": 0
        },
        "paused": true,
        "steps_retries": {
          "retries": 0,
          "retry_limit": 0,
          "step_limit": 0,
          "steps": 0
        },
        "volume": {
          "blocking": true,
          "pct_used": 0
        }
      },
      "decision": "proceed",
      "reason": "string",
      "wait_seconds": 0
    },
    "type": "string"
  }
}