TruthGate Hallucination Auditor Gateway
TruthGate is a production-grade hallucination auditor MCP gateway. It verifies AI-generated responses against provided sources, runs grounding checks on workspace file references, executes benchmark suites to measure hallucination rates, and exposes a full rule catalogue. Designed for agent pipelines that require factual accuracy guarantees.
- Selected price
- $0.001 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
TruthGate Hallucination Auditor Gateway
Prepare your request, then continue with your agent.
Selected price
$0.001 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
idintegerjsonrpcstringresultobjecttoolsobject[]annotationsobjectdestructiveHintbooleanidempotentHintbooleanopenWorldHintbooleanreadOnlyHintboolean
descriptionstringinputSchemaobjectpropertiesobjectresponse_textobjectdescriptionstringtypestring
sourcesobjectdescriptionstringitemsobjectpropertiesobjectcontentobjecttypestring
source_idobjecttypestring
titleobjecttypestring
requiredstring[]typestring
typestring
strict_citationsobjectdefaultbooleandescriptionstringtypestring
workspace_rootobjectdescriptionstringtypestring
requiredstring[]typestring
namestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
id?: number;
jsonrpc?: string;
result?: {
tools?: Array<{
annotations?: {
destructiveHint?: boolean;
idempotentHint?: boolean;
openWorldHint?: boolean;
readOnlyHint?: boolean;
};
description?: string;
inputSchema?: {
properties?: {
response_text?: {
description?: string;
type?: string;
};
sources?: {
description?: string;
items?: {
properties?: {
content?: {
type?: string;
};
source_id?: {
type?: string;
};
title?: {
type?: string;
};
};
required?: Array<string>;
type?: string;
};
type?: string;
};
strict_citations?: {
default?: boolean;
description?: string;
type?: string;
};
workspace_root?: {
description?: string;
type?: string;
};
};
required?: Array<string>;
type?: string;
};
name?: string;
}>;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
codesphereugCurrent TruthGate Hallucination Auditor Gateway · POST · View API reference | $0.001 / call | — | —successP50— |
- Unit price
- $0.001
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.
Total $0.1
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/codesphereug/truthgate/mcp- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/codesphereug/truthgate/mcp' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
No input fields are required by this API contract.
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Verify an AI agent response against source documents and/or a workspace directory across deterministic rules TG001-TG008, returning claim-by-claim verdicts and a surgical self-correction prompt when any check fails.",
"inputSchema": {
"properties": {
"response_text": {
"description": "The full markdown response produced by the AI agent.",
"type": "string"
},
"sources": {
"description": "List of grounding context documents ({source_id, title, content}).",
"items": {
"properties": {
"content": {
"type": "string"
},
"source_id": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"source_id",
"content"
],
"type": "object"
},
"type": "array"
},
"strict_citations": {
"default": true,
"description": "Whether uncited factual claims trigger TG005 (default: true).",
"type": "boolean"
},
"workspace_root": {
"description": "Optional workspace directory path for verifying file paths, #Lstart-Lend ranges, and AST symbols.",
"type": "string"
}
},
"required": [
"response_text"
],
"type": "object"
},
"name": "truthgate_verify_response"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Verify all file paths, #Lstart-Lend line ranges, and AST symbols referenced in markdown text against a workspace directory (rules TG006-TG008).",
"inputSchema": {
"properties": {
"response_text": {
"description": "Markdown text containing file links, line ranges, or symbol references.",
"type": "string"
},
"workspace_root": {
"description": "Absolute or relative path to the workspace directory.",
"type": "string"
}
},
"required": [
"response_text",
"workspace_root"
],
"type": "object"
},
"name": "truthgate_ground_workspace_refs"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "List all 8 deterministic verification rules (TG001-TG008) enforced by TruthGate.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "truthgate_list_rules"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Run the reproducible 40-scenario TruthGate hallucination & grounding benchmark suite.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "truthgate_run_benchmark"
}
]
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# TruthGate Hallucination Auditor Gateway
TruthGate is a production-grade hallucination auditor MCP gateway. It verifies AI-generated responses against provided sources, runs grounding checks on workspace file references, executes benchmark suites to measure hallucination rates, and exposes a full rule catalogue. Designed for agent pipelines that require factual accuracy guarantees.
Documentation: https://openany.si/apis/50ec7e85-ad96-4ae5-a284-5b323e5ec2b9
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/codesphereug/truthgate/mcp
Price: $0.001 / call
Provider: codesphereug
Contract revision: 5
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/codesphereug/truthgate/mcp' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "TruthGate Hallucination Auditor Gateway",
"endpoint": "https://api.openany.si/v1/agent-apis/codesphereug/truthgate/mcp",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "1000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Recorded upstream MCP tools/list (HTTP 200)",
"request": {
"body": {
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Verify an AI agent response against source documents and/or a workspace directory across deterministic rules TG001-TG008, returning claim-by-claim verdicts and a surgical self-correction prompt when any check fails.",
"inputSchema": {
"properties": {
"response_text": {
"description": "The full markdown response produced by the AI agent.",
"type": "string"
},
"sources": {
"description": "List of grounding context documents ({source_id, title, content}).",
"items": {
"properties": {
"content": {
"type": "string"
},
"source_id": {
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"source_id",
"content"
],
"type": "object"
},
"type": "array"
},
"strict_citations": {
"default": true,
"description": "Whether uncited factual claims trigger TG005 (default: true).",
"type": "boolean"
},
"workspace_root": {
"description": "Optional workspace directory path for verifying file paths, #Lstart-Lend ranges, and AST symbols.",
"type": "string"
}
},
"required": [
"response_text"
],
"type": "object"
},
"name": "truthgate_verify_response"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Verify all file paths, #Lstart-Lend line ranges, and AST symbols referenced in markdown text against a workspace directory (rules TG006-TG008).",
"inputSchema": {
"properties": {
"response_text": {
"description": "Markdown text containing file links, line ranges, or symbol references.",
"type": "string"
},
"workspace_root": {
"description": "Absolute or relative path to the workspace directory.",
"type": "string"
}
},
"required": [
"response_text",
"workspace_root"
],
"type": "object"
},
"name": "truthgate_ground_workspace_refs"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "List all 8 deterministic verification rules (TG001-TG008) enforced by TruthGate.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "truthgate_list_rules"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Run the reproducible 40-scenario TruthGate hallucination & grounding benchmark suite.",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "truthgate_run_benchmark"
}
]
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Recorded upstream MCP tools/list (HTTP 200)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/codesphereug/truthgate/mcp' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "id": 2, "jsonrpc": "2.0", "method": "tools/list" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "id": 2, "jsonrpc": "2.0", "result": { "tools": [ { "annotations": { "destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true }, "description": "Verify an AI agent response against source documents and/or a workspace directory across deterministic rules TG001-TG008, returning claim-by-claim verdicts and a surgical self-correction prompt when any check fails.", "inputSchema": { "properties": { "response_text": { "description": "The full markdown response produced by the AI agent.", "type": "string" }, "sources": { "description": "List of grounding context documents ({source_id, title, content}).", "items": { "properties": { "content": { "type": "string" }, "source_id": { "type": "string" }, "title": { "type": "string" } }, "required": [ "source_id", "content" ], "type": "object" }, "type": "array" }, "strict_citations": { "default": true, "description": "Whether uncited factual claims trigger TG005 (default: true).", "type": "boolean" }, "workspace_root": { "description": "Optional workspace directory path for verifying file paths, #Lstart-Lend ranges, and AST symbols.", "type": "string" } }, "required": [ "response_text" ], "type": "object" }, "name": "truthgate_verify_response" }, { "annotations": { "destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true }, "description": "Verify all file paths, #Lstart-Lend line ranges, and AST symbols referenced in markdown text against a workspace directory (rules TG006-TG008).", "inputSchema": { "properties": { "response_text": { "description": "Markdown text containing file links, line ranges, or symbol references.", "type": "string" }, "workspace_root": { "description": "Absolute or relative path to the workspace directory.", "type": "string" } }, "required": [ "response_text", "workspace_root" ], "type": "object" }, "name": "truthgate_ground_workspace_refs" }, { "annotations": { "destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true }, "description": "List all 8 deterministic verification rules (TG001-TG008) enforced by TruthGate.", "inputSchema": { "properties": {}, "type": "object" }, "name": "truthgate_list_rules" }, { "annotations": { "destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true }, "description": "Run the reproducible 40-scenario TruthGate hallucination & grounding benchmark suite.", "inputSchema": { "properties": {}, "type": "object" }, "name": "truthgate_run_benchmark" } ] } }