---
title: "Search decisions for the MCP write-time gate"
method: POST
path: "/v1/decisions/search"
tags: ["decisions"]
---

# Search decisions for the MCP write-time gate

`POST /v1/decisions/search`

## Request

- Base URL: `https://api.tently.dev`
- URL: `https://api.tently.dev/v1/decisions/search`
- Auth: none declared

## Request body

- object
  - `query` string, required
  - `repoId` string, uuid
  - `repos` string[]
  - `paths` string[]
  - `limit` integer

## Response `200`

Default Response

- object
  - `decisions` object[], required
    - `id` string, required
    - `title` string, required
    - `rationale` string, required
    - `tier` 'EXPLICIT' | 'MANUAL' | 'MINED' | 'PROPOSED', required
    - `status` 'ACTIVE' | 'PROPOSED' | 'SUPERSEDED' | 'REJECTED' | 'ARCHIVED', required
    - `enforcement` 'BLOCKING' | 'ADVISORY', required
    - `scope` object, required
      - `includePaths` string[]
      - `excludePaths` string[]
      - `modules` string[]
    - `similarity` number, nullable, required

## Other responses

- `401`: Default Response
- `503`: Default Response

---

[API](https://skmtc.dev/tently/apis/tently-api.md) · [All operations](https://skmtc.dev/tently/apis/tently-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tently/apis/tently-api/revisions/a52697fea1ba?raw)
