> For AI agents: the documentation index is at https://platform.detectif.ai/llms.txt. Every page is also available as Markdown by adding `.md` to its path.

# MCP

One MCP server for every DetectifAI product. Connect Claude, Claude Code, Cursor, VS Code, Codex, Windsurf and other MCP clients with OAuth or an API key, then use every tool by asking.

DetectifAI runs one Model Context Protocol (MCP) server with tools for every product, so AI assistants can use them for you:

| Product | What your assistant can do | Tools |
|---|---|---|
| [Aletheia](https://platform.detectif.ai/docs/deepfake-detection/) | Check a recording for AI-generated speech | [Aletheia tools](https://platform.detectif.ai/docs/mcp/#deepfake-detection-tools) |
| [Eidos](https://platform.detectif.ai/docs/speaker-verification/) | Enroll speakers, verify a recording against one, list and delete speakers | [Eidos tools](https://platform.detectif.ai/docs/mcp/#speaker-verification-tools) |
| [Noesis](https://platform.detectif.ai/docs/noesis/) | Find out who or what answered a recorded call, and read call sessions | [Noesis tools](https://platform.detectif.ai/docs/mcp/#noesis-tools) |
| Account | Fetch a stored result again, and read your balance | [Account tools](https://platform.detectif.ai/docs/mcp/#account-tools) |

| | |
|---|---|
| Server URL | `https://platform.detectif.ai/mcp` |
| Transport | Streamable HTTP |
| Authentication | Sign in with OAuth, or send `Authorization: Bearer <your API key>`. Never put a key in the URL. No account yet? Try the [free trial](#free-trial-without-an-account) at `https://platform.detectif.ai/mcp/trial`. |

Assistants with a connector screen, such as Claude, can [sign in with OAuth](#sign-in-with-oauth), so there is no key to create or paste. For the clients below, create an API key in the dashboard first; see [Authentication](https://platform.detectif.ai/docs/#authentication). The examples below read it from the `DETECTIF_API_KEY` environment variable.

## Free trial without an account

Try the server before creating an account: connect an MCP client to `https://platform.detectif.ai/mcp/trial` (Streamable HTTP) with no key and no sign-in. It has the same tools as `/mcp`.

- The trial allows 10 checks per network address. Each `detect_deepfake`, `enroll_speaker`, `verify_speaker` or `analyze_call_recording` call that returns a result counts as one check. Calls that are rejected or fail do not count, and reading results, speakers or the balance is free.
- Everyone on the same network shares its trial, so the trial keeps nothing that others could reach: `enroll_speaker` makes up the `speaker_id` and returns it (keep it to verify against that speaker; `list_speakers` shows none), `idempotency_key` is ignored, the trial keeps no copy of the audio, and trial voiceprints are deleted after 24 hours. Nothing moves to an account created later.
- The trial address takes no key or sign-in; with an API key, use `https://platform.detectif.ai/mcp`.
- After 10 checks, every tool answers with the error code `trial_ended`. To go on, create an account at [platform.detectif.ai](https://platform.detectif.ai), generate an API key on the **API keys** page, and change the connection to `https://platform.detectif.ai/mcp` with the header `Authorization: Bearer dtf_live_...` (see [Connect a client](#connect-a-client)), or sign in there when your client asks.

## Sign in with OAuth

In Claude, add a custom connector with the URL `https://platform.detectif.ai/mcp`. Choose **Sign in now** and **Use Claude's published identity**, then sign in to DetectifAI and approve the connection. Checks use the credits of the account you signed in with.

| Claude setting | What to choose |
|---|---|
| Use Claude's published identity | Recommended. Nothing to set up. |
| Register automatically | Also works. |
| Use your own OAuth client | Works with a client ID from DetectifAI support. Leave the secret blank. |
| No sign-in | Add a request header `Authorization: Bearer <your API key>` instead. |

To disconnect, remove the connector. Its access ends straight away.

## Connect a client


#### Claude Code

```bash
claude mcp add --transport http detectif https://platform.detectif.ai/mcp --header "Authorization: Bearer $DETECTIF_API_KEY"
```

Check the connection with `claude mcp list`, or `/mcp` inside Claude Code.

#### Cursor

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=detectif&config=eyJ1cmwiOiJodHRwczovL3BsYXRmb3JtLmRldGVjdGlmLmFpL21jcCIsImhlYWRlcnMiOnsiQXV0aG9yaXphdGlvbiI6IkJlYXJlciAke2VudjpERVRFQ1RJRl9BUElfS0VZfSJ9fQ%3D%3D)

Or add it by hand to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "detectif": {
      "url": "https://platform.detectif.ai/mcp",
      "headers": { "Authorization": "Bearer ${env:DETECTIF_API_KEY}" }
    }
  }
}
```

#### VS Code

[Install in VS Code](vscode:mcp/install?%7B%22name%22%3A%22detectif%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fplatform.detectif.ai%2Fmcp%22%2C%22headers%22%3A%7B%22Authorization%22%3A%22Bearer%20%24%7Binput%3Adetectif-api-key%7D%22%7D%2C%22inputs%22%3A%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22detectif-api-key%22%2C%22description%22%3A%22DetectifAI%20API%20key%22%2C%22password%22%3Atrue%7D%5D%7D)

Or add it by hand to `.vscode/mcp.json`. VS Code asks for the key and stores it securely:

```json
{
  "inputs": [
    { "type": "promptString", "id": "detectif-api-key", "description": "DetectifAI API key", "password": true }
  ],
  "servers": {
    "detectif": {
      "type": "http",
      "url": "https://platform.detectif.ai/mcp",
      "headers": { "Authorization": "Bearer ${input:detectif-api-key}" }
    }
  }
}
```

#### Codex

```bash
codex mcp add detectif --url https://platform.detectif.ai/mcp --bearer-token-env-var DETECTIF_API_KEY
```

Or in `~/.codex/config.toml`:

```toml
[mcp_servers.detectif]
url = "https://platform.detectif.ai/mcp"
bearer_token_env_var = "DETECTIF_API_KEY"
```

#### Windsurf

Add to `~/.codeium/windsurf/mcp_config.json` (in Devin Desktop: `~/.config/devin/mcp_config.json`):

```json
{
  "mcpServers": {
    "detectif": {
      "serverUrl": "https://platform.detectif.ai/mcp",
      "headers": { "Authorization": "Bearer ${env:DETECTIF_API_KEY}" }
    }
  }
}
```

#### Claude Desktop

Custom connectors in Claude Desktop and claude.ai do not let you set your own `Authorization` header, so they cannot send a DetectifAI API key. In Claude Desktop, use the open-source `mcp-remote` bridge instead (needs Node.js). Open Settings > Developer > Edit Config, add this to `claude_desktop_config.json`, then restart Claude Desktop:

```json
{
  "mcpServers": {
    "detectif": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://platform.detectif.ai/mcp", "--transport", "http-only", "--header", "Authorization:${DETECTIF_AUTH_HEADER}"],
      "env": { "DETECTIF_AUTH_HEADER": "Bearer dtf_live_..." }
    }
  }
}
```

This file holds the key in plain text; protect it like any other credential.

#### Anthropic API

The Messages API can connect to DetectifAI for you with the MCP connector. Anthropic's servers make the connection, so your DetectifAI key is sent to Anthropic with the request.

```bash
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 1024,
    "messages": [{ "role": "user", "content": "List my enrolled speakers." }],
    "mcp_servers": [{
      "type": "url",
      "url": "https://platform.detectif.ai/mcp",
      "name": "detectif",
      "authorization_token": "'"$DETECTIF_API_KEY"'"
    }],
    "tools": [{ "type": "mcp_toolset", "mcp_server_name": "detectif" }]
  }'
```

```python
import os

import anthropic

client = anthropic.Anthropic()
response = client.beta.messages.create(
    model="claude-opus-5-5",
    max_tokens=1024,
    betas=["mcp-client-2025-11-20"],
    mcp_servers=[{
        "type": "url",
        "url": "https://platform.detectif.ai/mcp",
        "name": "detectif",
        "authorization_token": os.environ["DETECTIF_API_KEY"],
    }],
    tools=[{"type": "mcp_toolset", "mcp_server_name": "detectif"}],
    messages=[{"role": "user", "content": "List my enrolled speakers."}],
)
print(response.content)
```

#### Other clients

Any client that supports Streamable HTTP and custom headers can connect:

```
URL:        https://platform.detectif.ai/mcp
Transport:  Streamable HTTP
Header:     Authorization: Bearer <your API key>
```


## Tools

Every tool, grouped by product. Your assistant picks the tool and fills in the arguments from what you ask. Audio tools take the recording as base64 text in `audio_base64` (up to 25 MB decoded) plus its `filename`; pass an `idempotency_key` and reuse it when retrying, so a retry returns the stored result instead of running again.

**Deepfake detection**

| Tool | What it does | Inputs |
|---|---|---|
| [`detect_deepfake`](https://platform.detectif.ai/docs/mcp/#detect_deepfake) | Check a recording (up to 300 s = 5 min, at least 2 s of speech) for AI-generated speech. | `audio_base64`, `filename`, `idempotency_key` (optional) |

**Speaker verification**

| Tool | What it does | Inputs |
|---|---|---|
| [`enroll_speaker`](https://platform.detectif.ai/docs/mcp/#enroll_speaker) | Add one enrollment sample for a speaker (creates the speaker on first use) with Eidos. | `speaker_id`, `audio_base64`, `filename`, `display_name` (optional), `idempotency_key` (optional) |
| [`verify_speaker`](https://platform.detectif.ai/docs/mcp/#verify_speaker) | Compare a recording (3-60 s, at least 2 s of speech) with an enrolled speaker using Eidos. | `speaker_id`, `audio_base64`, `filename`, `detect_deepfake` (optional), `idempotency_key` (optional) |
| [`list_speakers`](https://platform.detectif.ai/docs/mcp/#list_speakers) | List enrolled speakers in this account, newest first. | `limit` (optional), `cursor` (optional) |
| [`delete_speaker`](https://platform.detectif.ai/docs/mcp/#delete_speaker) | Delete a speaker and its stored voice profile. | `speaker_id` |

**Noesis**

| Tool | What it does | Inputs |
|---|---|---|
| [`analyze_call_recording`](https://platform.detectif.ai/docs/mcp/#analyze_call_recording) | Find out who or what answered a recorded phone call: a person, voicemail, an IVR menu or another machine. | `audio_base64`, `filename`, `call_id` (optional), `language` (optional), `remote_channel` (optional), `record` (optional), `idempotency_key` (optional) |
| [`get_call_analysis`](https://platform.detectif.ai/docs/mcp/#get_call_analysis) | Status of a call-recording analysis: running (with progress from 0 to 1), succeeded (with the result:         first and final answer and the timeline of answers) or failed (with the error; nothing is charged then). | `operation_id` |
| [`get_call_session`](https://platform.detectif.ai/docs/mcp/#get_call_session) | Read one Noesis call session of this account: live state while the call runs (status, latest answer,         seconds of audio so far), the final answer afterwards. | `session_id` |

`analyze_call_recording` runs in the background: it returns an `operation_id`, and `get_call_analysis` returns the progress and, when done, the result. Live calls are not available through MCP: they use the [Noesis WebSocket](https://platform.detectif.ai/docs/noesis/#stream-protocol).

**Account** (shared by every product)

| Tool | What it does | Inputs |
|---|---|---|
| [`get_operation`](https://platform.detectif.ai/docs/mcp/#get_operation) | Fetch a stored operation: status and, for 30 days, its result. | `operation_id` |
| [`get_credit_balance`](https://platform.detectif.ai/docs/mcp/#get_credit_balance) | Return the account's available and reserved credits. | none |

`get_operation` fetches the stored result of a deepfake check, an enrollment or a verification by its `operation_id`, for 30 days. Noesis call analyses are fetched with `get_call_analysis` instead.

## Example prompts

### Aletheia prompts

```
Check if /path/call.wav is AI-generated.
```

```
Which parts of /path/call.wav sound AI-generated?
```

### Eidos prompts

```
Enroll /path/alice-1.wav as speaker "alice".
```

```
Is /path/new-call.wav Alice? Also check whether it is AI-generated.
```

```
List my enrolled speakers.
```

```
Delete the speaker "alice".
```

### Noesis prompts

```
Who answered the call in /path/outbound-call.wav: a person, voicemail or an IVR menu?
```

## Passing audio to tools

Tools take the recording as base64 text in `audio_base64`, up to 25 MB once decoded. Your assistant reads the file and encodes it for you. The server never fetches URLs or reads file paths.

Because the audio travels inside the conversation, short clips work best. For long recordings or files over 25 MB, use the [REST API](https://platform.detectif.ai/docs/#api-endpoints), which accepts uploads up to 100 MB (Noesis recordings: up to 50 MB).

Every uploaded recording is stored for 30 days, then deleted. See [Privacy](https://platform.detectif.ai/docs/#privacy).

## Call recordings (Noesis)

`analyze_call_recording` takes a recorded call as a WAV file (up to 25 MB decoded, 1 second to 15 minutes) and starts the analysis in the background. It returns an `operation_id` at once; your assistant then calls `get_call_analysis` with it until the result is ready, and `get_call_session` reads a call by its `session_id`. The key needs the Noesis permission. The call audio and transcript are recorded for 30 days unless the tool is called with `record: false`; see [Data and recording](https://platform.detectif.ai/docs/noesis/#data-and-recording).

Live calls are not available through MCP. Use the [Noesis WebSocket](https://platform.detectif.ai/docs/noesis/#stream-protocol) for those.

## Security

- Keep the key in an environment variable or your client's password prompt. Do not paste it into a chat or a URL.
- Create a separate key for each assistant, limited to the actions it needs, so you can revoke it on its own.
- Rotate the key in the dashboard if it may have been exposed.
- An assistant connected with your key acts on your account. Keep tool-call approval switched on.
- Be careful with prompt injection: text inside files, web pages or transcripts can try to make an assistant call tools, for example to delete a speaker. Check each tool call before you approve it.

## Troubleshooting

**401 Unauthorized.** The key is missing, mistyped or revoked, or the header is not `Authorization: Bearer <key>`. If the key comes from an environment variable, set it before you start the client.

**Wrong transport.** The server speaks Streamable HTTP at `https://platform.detectif.ai/mcp`. Choose `http` (or "Streamable HTTP") in your client, not SSE or stdio.

**Behind a proxy.** Some corporate proxies remove the `Authorization` header or block long requests. Allow `platform.detectif.ai`, or configure your client to use the proxy for HTTPS.

**"File too large".** Through MCP the limit is 25 MB. Send a compressed file, or use the REST API.

## Tool reference

Every tool with its arguments, an example call and what it returns.

## Deepfake detection tools

Is this a real voice? Checks a recording or a live call for AI-generated speech. See [Deepfake detection](https://platform.detectif.ai/docs/deepfake-detection/) for the API behind these tools.

### `detect_deepfake`

**Detect synthetic speech**.

Check a recording (up to 300 s = 5 min, at least 2 s of speech) for AI-generated speech.

Scope: deepfake:detect. Send at least 10 s of speech: longer audio gives far fewer false alarms. A recording with under 2 s of speech (music, noise or silence) is refused with insufficient_speech and not charged. Returns result.verdict (always real or fake), and for older clients result.score (0 to 1), result.label (genuine or synthetic) and segments. A verdict is a strong signal, not proof of fraud. Pass a new UUID as idempotency_key and reuse it on any retry, so a retry returns the stored result.

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `audio_base64` | string | yes | The audio file's bytes, base64-encoded (standard or URL-safe alphabet). Up to 25 MB decoded; use the REST API for larger files (up to 100 MB). WAV, MP3, FLAC, OGG/Opus, WebM, M4A/AAC or AIFF. Not a URL or a file path. |
| `filename` | string | yes | Original file name, for example call.wav. Informational only. |
| `idempotency_key` | string or null | no | Recommended. A unique value per call, for example a new UUID (1-128 printable ASCII characters). If you retry this call, pass the SAME value: the retry returns the stored result instead of running the operation again. Without it, a retry is a new operation. Use a new value for a new call. |

Example call:

```json
{
  "name": "detect_deepfake",
  "arguments": {
    "audio_base64": "<the recording, base64-encoded>",
    "filename": "call.wav",
    "idempotency_key": "3f6c1f0e-6a52-4c1e-9d4b-2a7b8c9d0e1f"
  }
}
```

Result: the same JSON as [Detect AI-generated speech](https://platform.detectif.ai/docs/deepfake-detection/#detect-ai-generated-speech).

## Speaker verification tools

Is this the right person? Enrolls a person's voice and checks whether a new recording or a live call is the same person. See [Speaker verification](https://platform.detectif.ai/docs/speaker-verification/) for the API behind these tools.

### `enroll_speaker`

**Enroll a speaker sample**.

Add one enrollment sample for a speaker (creates the speaker on first use) with Eidos.

Scope: speakers:enroll. Audio: 15-60 s with at least 10 s of speech. Enroll 2-3 samples per speaker (up to 5). Pass a new UUID as idempotency_key and reuse it on any retry, so a retry returns the stored result (and does not add a duplicate sample).

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `speaker_id` | string | yes | Your identifier for the speaker: 1-64 characters from A-Z a-z 0-9 _ . : -. Unique per account. |
| `audio_base64` | string | yes | The audio file's bytes, base64-encoded (standard or URL-safe alphabet). Up to 25 MB decoded; use the REST API for larger files (up to 100 MB). WAV, MP3, FLAC, OGG/Opus, WebM, M4A/AAC or AIFF. Not a URL or a file path. |
| `filename` | string | yes | Original file name, for example call.wav. Informational only. |
| `display_name` | string or null | no | Optional label shown in the dashboard (max 128 characters). |
| `idempotency_key` | string or null | no | Recommended. A unique value per call, for example a new UUID (1-128 printable ASCII characters). If you retry this call, pass the SAME value: the retry returns the stored result instead of running the operation again. Without it, a retry is a new operation. Use a new value for a new call. |

Example call:

```json
{
  "name": "enroll_speaker",
  "arguments": {
    "speaker_id": "alice",
    "audio_base64": "<the recording, base64-encoded>",
    "filename": "call.wav",
    "idempotency_key": "3f6c1f0e-6a52-4c1e-9d4b-2a7b8c9d0e1f"
  }
}
```

Result: the same JSON as [Enroll a voice sample](https://platform.detectif.ai/docs/speaker-verification/#enroll-a-voice-sample).

### `verify_speaker`

**Verify a speaker**.

Compare a recording (3-60 s, at least 2 s of speech) with an enrolled speaker using Eidos.

Scope: speakers:verify (+ deepfake:detect with detect_deepfake=true, which runs a second, independent operation on the same audio). Decide with result.decision (match or no_match). result.similarity (-1..1, higher is more alike) is not a probability. Eidos rarely accepts the wrong person, so genuine speakers recorded in different conditions are rejected more often. Pass a new UUID as idempotency_key and reuse it on any retry, so a retry returns the stored result.

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `speaker_id` | string | yes | Your identifier for the speaker: 1-64 characters from A-Z a-z 0-9 _ . : -. Unique per account. |
| `audio_base64` | string | yes | The audio file's bytes, base64-encoded (standard or URL-safe alphabet). Up to 25 MB decoded; use the REST API for larger files (up to 100 MB). WAV, MP3, FLAC, OGG/Opus, WebM, M4A/AAC or AIFF. Not a URL or a file path. |
| `filename` | string | yes | Original file name, for example call.wav. Informational only. |
| `detect_deepfake` | boolean | no | Also run deepfake detection on the same audio (a second operation; scope deepfake:detect). |
| `idempotency_key` | string or null | no | Recommended. A unique value per call, for example a new UUID (1-128 printable ASCII characters). If you retry this call, pass the SAME value: the retry returns the stored result instead of running the operation again. Without it, a retry is a new operation. Use a new value for a new call. |

Example call:

```json
{
  "name": "verify_speaker",
  "arguments": {
    "speaker_id": "alice",
    "audio_base64": "<the recording, base64-encoded>",
    "filename": "call.wav",
    "idempotency_key": "3f6c1f0e-6a52-4c1e-9d4b-2a7b8c9d0e1f"
  }
}
```

Result: the same JSON as [Verify a speaker](https://platform.detectif.ai/docs/speaker-verification/#verify-a-speaker).

### `list_speakers`

**List speakers** (read-only).

List enrolled speakers in this account, newest first. Scope: speakers:read.

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Page size, 1-100. |
| `cursor` | string or null | no | next_cursor from the previous page. |

Example call:

```json
{
  "name": "list_speakers",
  "arguments": {}
}
```

Result: the same JSON as [List speakers](https://platform.detectif.ai/docs/speaker-verification/#list-speakers).

### `delete_speaker`

**Delete a speaker** (deletes data).

Delete a speaker and its stored voice profile. Cannot be undone. Scope: speakers:delete.

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `speaker_id` | string | yes | Your identifier for the speaker: 1-64 characters from A-Z a-z 0-9 _ . : -. Unique per account. |

Example call:

```json
{
  "name": "delete_speaker",
  "arguments": {
    "speaker_id": "alice"
  }
}
```

Result: the same JSON as [Delete a speaker](https://platform.detectif.ai/docs/speaker-verification/#delete-a-speaker).

## Noesis tools

Who or what answered? Tells a person, an IVR menu, voicemail and a voice agent apart on a phone call, live or from a recording. See [Noesis](https://platform.detectif.ai/docs/noesis/) for the API behind these tools.

### `analyze_call_recording`

**Analyze a call recording**.

Find out who or what answered a recorded phone call: a person, voicemail, an IVR menu or another machine.

Scope: noesis:detect. Starts a background analysis and returns operation_id at once. The recording is replayed in real time, so the answer takes about as long as the recording: poll get_call_analysis(operation_id) every few seconds until status is succeeded or failed. Pass a new UUID as idempotency_key and reuse it on any retry, so a retry returns the same analysis.

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `audio_base64` | string | yes | The call recording's bytes, base64-encoded: a WAV file (PCM, float or G.711), 1 s to 15 min, up to 25 MB decoded. Not a URL or a file path. |
| `filename` | string | yes | Original file name, for example call.wav. Informational only. |
| `call_id` | string or null | no | Your id for the call (up to 200 characters). |
| `language` | string or null | no | Language hint such as en or hi (optional). |
| `remote_channel` | integer | no | Stereo files: the channel of the person called (0 or 1). |
| `record` | boolean | no | Keep the recording and its transcript for 30 days (default true). Pass false to not keep them. |
| `idempotency_key` | string or null | no | Recommended. A unique value per call, for example a new UUID (1-128 printable ASCII characters). If you retry this call, pass the SAME value: the retry returns the stored result instead of running the operation again. Without it, a retry is a new operation. Use a new value for a new call. |

Example call:

```json
{
  "name": "analyze_call_recording",
  "arguments": {
    "audio_base64": "<the recording, base64-encoded>",
    "filename": "call.wav",
    "idempotency_key": "3f6c1f0e-6a52-4c1e-9d4b-2a7b8c9d0e1f"
  }
}
```

### `get_call_analysis`

**Get a call analysis** (read-only).

Status of a call-recording analysis: running (with progress from 0 to 1), succeeded (with the result: first and final answer and the timeline of answers) or failed (with the error; nothing is charged then). Scope: noesis:read.

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `operation_id` | string | yes | The operation_id returned by analyze_call_recording (op_...). |

Example call:

```json
{
  "name": "get_call_analysis",
  "arguments": {
    "operation_id": "op_0123456789abcdef0123456789abcdef"
  }
}
```

### `get_call_session`

**Get a call session** (read-only).

Read one Noesis call session of this account: live state while the call runs (status, latest answer, seconds of audio so far), the final answer afterwards. Scope: noesis:read.

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `session_id` | string | yes | A Noesis session id (from a stream token, a ready message or a call analysis). |

Example call:

```json
{
  "name": "get_call_session",
  "arguments": {
    "session_id": "ses_0123456789abcdef"
  }
}
```

Result: the same JSON as [Get a call session](https://platform.detectif.ai/docs/noesis/#get-a-call-session).

## Account tools

Stored results of deepfake checks, enrollments and verifications, live call stream tokens and records, your balance, your usage and the service status.

### `get_operation`

**Get an operation** (read-only).

Fetch a stored operation: status and, for 30 days, its result. Requires the scope of the operation's type.

Arguments:

| Name | Type | Required | Description |
|---|---|---|---|
| `operation_id` | string | yes | An operation_id such as op_0123... from an earlier result or error. |

Example call:

```json
{
  "name": "get_operation",
  "arguments": {
    "operation_id": "op_0123456789abcdef0123456789abcdef"
  }
}
```

Result: the same JSON as [Get a result](https://platform.detectif.ai/docs/#get-a-result).

### `get_credit_balance`

**Get credit balance** (read-only).

Return the account's available and reserved credits. Scope: credits:read. Without an API key (free trial): how many trial checks are left.

No arguments.

Example call:

```json
{
  "name": "get_credit_balance",
  "arguments": {}
}
```

Result: the same JSON as [Get your balance](https://platform.detectif.ai/docs/#get-your-balance).
