The Vrin MCP server exposes two tools that work as a pair: one to start a query, one to wait for the result.Documentation Index
Fetch the complete documentation index at: https://docs.vrin.cloud/llms.txt
Use this file to discover all available pages before exploring further.
vrin_query_async
Start a query against the Vrin knowledge base. Returns immediately with a job_id that the client must poll with vrin_check_job.
Input
| Parameter | Type | Default | Description |
|---|---|---|---|
query | string | required | The natural-language question to answer. |
mode | string | "context" | Response shape. One of context, chat, expert, brainstorm, raw_facts. See response modes. |
depth | string | "basic" | Retrieval depth. One of basic, thinking, research. Only applies when mode="context". |
include_sources | boolean | true | Include source document references in the result. |
Output
On success:Behavior
- The tool writes a job record to DynamoDB and invokes a worker Lambda asynchronously. It returns within ~200ms.
- The
job_idis a UUID. Keep it — you’ll need it forvrin_check_job. - Jobs expire one hour after creation.
vrin_check_job
Wait for a running query to complete. Long-polls internally for up to 55 seconds per call. Most queries complete inside the first call.
Input
| Parameter | Type | Description |
|---|---|---|
job_id | string | The UUID returned by vrin_query_async. |
Output — status: "completed"
result depend on the mode passed to vrin_query_async. context mode returns structured facts for an agent to synthesize; chat mode returns a finished prose summary.
Output — status: "working"
working, call vrin_check_job again with the same job_id. Most queries finish on the first or second call.
Output — status: "failed"
job_id on failure — start a new query with vrin_query_async.
Output — status: "not_found"
Canonical polling pattern
time.sleep in that loop. vrin_check_job long-polls internally; calling it back-to-back is correct.
Resources
In addition to the two tools, the server exposes two MCP resources that clients can read without a tool call.vrin://stats
Returns knowledge-base statistics for the authenticated user:
vrin://config
Returns server configuration:
vrin_ent_* keys, api_key_type is "enterprise" and infrastructure reflects the customer’s configured deployment.