Tools and secrets
Get tool catalog
What a tool can be. data lists the http kind and each builtin (skip_call, end_call, schedule_callback, webhook, transfer_call, plus send_dtmf, which is listed but not available yet) with its phases, settings schema and defaults. phases gives each phase’s timeouts, retries and tool limit; namespaces, operators and filters are what templates and conditions can use.
model and native_tool_calls tell you whether your tier’s model can take on-call tools with arguments. Read-only, and calls nothing.
GET
/
v2
/
tools
/
catalog
Get tool catalog
curl --request GET \
--url https://sandbox.voice.miraiminds.co/v2/tools/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.voice.miraiminds.co/v2/tools/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const url = 'https://sandbox.voice.miraiminds.co/v2/tools/catalog';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"name": "http",
"kind": "http",
"phases": [
"pre_call",
"on_call",
"post_call"
],
"summary": "Call an https endpoint you own. URL, headers, query and body are templates over the call's namespaces; the reply can be transformed with jq and promoted into variables.",
"config_schema": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"default": "GET"
},
"url": {
"type": "string",
"pattern": "^https://",
"maxLength": 2048
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"query": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"body": {
"description": "JSON template. A leaf that is exactly {{= path }} becomes the typed value."
}
},
"required": [
"url"
]
},
"defaults": {
"method": "GET",
"enabled": true,
"on_failure": "continue",
"execution": "sync",
"timeout_ms": {
"pre_call": 5000,
"on_call": 10000,
"post_call": 15000
},
"retry": {
"pre_call": 0,
"on_call": 0,
"post_call": 2
}
},
"tiers": [
"t1",
"t3",
"t5"
],
"available": true
},
{
"name": "schedule_callback",
"kind": "builtin",
"phases": [
"on_call",
"post_call"
],
"summary": "Book a later call to the same person. On_call supplies a default time and note argument schema; post_call uses configured templates. The scheduled call uses normal call admission.",
"config_schema": {
"type": "object",
"properties": {
"min_delay_minutes": {
"type": "integer",
"minimum": 0,
"default": 30
},
"max_days": {
"type": "integer",
"minimum": 1,
"default": 14
},
"at": {
"type": "string",
"description": "post_call only: an RFC3339 timestamp, usually a template such as {{ analysis.data.callback_at }}."
},
"note": {
"type": "string",
"maxLength": 500
}
}
},
"defaults": {
"min_delay_minutes": 30,
"max_days": 14
},
"tiers": [
"t1",
"t3",
"t5"
],
"available": true
},
{
"name": "transfer_call",
"kind": "builtin",
"phases": [
"on_call"
],
"summary": "Pass the caller to a person on your team. Once the caller agrees, the agent calls it: we ring the number below (else the agent's handoff number) and join that person to the call, and the agent stops speaking. If nobody answers in time the agent carries on. Phone and web calls.",
"config_schema": {
"type": "object",
"properties": {
"to": {
"type": "string",
"pattern": "^\\+91[1-9][0-9]{9}$",
"description": "The number to ring, such as +919812345678. Leave it empty to ring the agent's handoff number."
},
"ring_secs": {
"type": "integer",
"minimum": 15,
"maximum": 60,
"default": 45,
"description": "How long to ring before the agent carries on, in seconds."
},
"whisper": {
"type": "boolean",
"default": false,
"description": "When the person answers, they first hear a one-line brief the agent writes (the caller's name, company and need) before joining, and the caller hears a short line as they join. Off: they join straight away."
}
}
},
"defaults": {
"ring_secs": 45,
"timeout_ms": 20000
},
"tiers": [
"t1",
"t3",
"t5"
],
"available": true
}
],
"phases": [
{
"phase": "post_call",
"summary": "Runs after the call has settled and been billed. Never changes status, duration or the call.completed payload.",
"max_tools": 10,
"default_timeout_ms": 15000,
"max_timeout_ms": 60000,
"default_retries": 2,
"max_retries": 5,
"namespaces": [
"vars",
"call",
"now",
"tools",
"analysis",
"secrets (templates only)"
]
}
],
"execution_modes": {
"default": "sync",
"on_call_http": [
"sync",
"async"
],
"async_timeout_max_ms": 300000
},
"namespaces": {
"vars": "Call input values, plus pre-call tool outputs as vars.<tool>.<key>.",
"call": "id, agent_id, to, from, tier, direction, channel, campaign_id, contact_id, attempt; after the call also status, ended_reason, duration_secs, answered.",
"args": "on_call only: the arguments the model supplied for this invocation."
},
"operators": [
{
"op": "eq",
"means": "equal after trimming; numeric when both sides are numbers, boolean when both are true/false"
},
{
"op": "exists",
"means": "present and non-empty"
},
{
"op": "is_true",
"means": "one of true/1/yes/on"
}
],
"filters": [
"default:\"fallback\"",
"json",
"urlencode"
],
"limits": {
"tools_per_agent": 40,
"pre_call_tools": 10,
"on_call_tools": 20,
"post_call_tools": 10,
"runs_per_call": 40,
"response_bytes": 262144,
"promoted_value_chars": 2048,
"select_keys": 16,
"url_chars": 2048
},
"tier": "t5",
"model": "miraiminds/mira-llm",
"native_tool_calls": true,
"text_style_models": [
"hinglish"
],
"secrets_configured": true
}⌘I
Get tool catalog
curl --request GET \
--url https://sandbox.voice.miraiminds.co/v2/tools/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.voice.miraiminds.co/v2/tools/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const url = 'https://sandbox.voice.miraiminds.co/v2/tools/catalog';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"object": "list",
"data": [
{
"name": "http",
"kind": "http",
"phases": [
"pre_call",
"on_call",
"post_call"
],
"summary": "Call an https endpoint you own. URL, headers, query and body are templates over the call's namespaces; the reply can be transformed with jq and promoted into variables.",
"config_schema": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"default": "GET"
},
"url": {
"type": "string",
"pattern": "^https://",
"maxLength": 2048
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"query": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"body": {
"description": "JSON template. A leaf that is exactly {{= path }} becomes the typed value."
}
},
"required": [
"url"
]
},
"defaults": {
"method": "GET",
"enabled": true,
"on_failure": "continue",
"execution": "sync",
"timeout_ms": {
"pre_call": 5000,
"on_call": 10000,
"post_call": 15000
},
"retry": {
"pre_call": 0,
"on_call": 0,
"post_call": 2
}
},
"tiers": [
"t1",
"t3",
"t5"
],
"available": true
},
{
"name": "schedule_callback",
"kind": "builtin",
"phases": [
"on_call",
"post_call"
],
"summary": "Book a later call to the same person. On_call supplies a default time and note argument schema; post_call uses configured templates. The scheduled call uses normal call admission.",
"config_schema": {
"type": "object",
"properties": {
"min_delay_minutes": {
"type": "integer",
"minimum": 0,
"default": 30
},
"max_days": {
"type": "integer",
"minimum": 1,
"default": 14
},
"at": {
"type": "string",
"description": "post_call only: an RFC3339 timestamp, usually a template such as {{ analysis.data.callback_at }}."
},
"note": {
"type": "string",
"maxLength": 500
}
}
},
"defaults": {
"min_delay_minutes": 30,
"max_days": 14
},
"tiers": [
"t1",
"t3",
"t5"
],
"available": true
},
{
"name": "transfer_call",
"kind": "builtin",
"phases": [
"on_call"
],
"summary": "Pass the caller to a person on your team. Once the caller agrees, the agent calls it: we ring the number below (else the agent's handoff number) and join that person to the call, and the agent stops speaking. If nobody answers in time the agent carries on. Phone and web calls.",
"config_schema": {
"type": "object",
"properties": {
"to": {
"type": "string",
"pattern": "^\\+91[1-9][0-9]{9}$",
"description": "The number to ring, such as +919812345678. Leave it empty to ring the agent's handoff number."
},
"ring_secs": {
"type": "integer",
"minimum": 15,
"maximum": 60,
"default": 45,
"description": "How long to ring before the agent carries on, in seconds."
},
"whisper": {
"type": "boolean",
"default": false,
"description": "When the person answers, they first hear a one-line brief the agent writes (the caller's name, company and need) before joining, and the caller hears a short line as they join. Off: they join straight away."
}
}
},
"defaults": {
"ring_secs": 45,
"timeout_ms": 20000
},
"tiers": [
"t1",
"t3",
"t5"
],
"available": true
}
],
"phases": [
{
"phase": "post_call",
"summary": "Runs after the call has settled and been billed. Never changes status, duration or the call.completed payload.",
"max_tools": 10,
"default_timeout_ms": 15000,
"max_timeout_ms": 60000,
"default_retries": 2,
"max_retries": 5,
"namespaces": [
"vars",
"call",
"now",
"tools",
"analysis",
"secrets (templates only)"
]
}
],
"execution_modes": {
"default": "sync",
"on_call_http": [
"sync",
"async"
],
"async_timeout_max_ms": 300000
},
"namespaces": {
"vars": "Call input values, plus pre-call tool outputs as vars.<tool>.<key>.",
"call": "id, agent_id, to, from, tier, direction, channel, campaign_id, contact_id, attempt; after the call also status, ended_reason, duration_secs, answered.",
"args": "on_call only: the arguments the model supplied for this invocation."
},
"operators": [
{
"op": "eq",
"means": "equal after trimming; numeric when both sides are numbers, boolean when both are true/false"
},
{
"op": "exists",
"means": "present and non-empty"
},
{
"op": "is_true",
"means": "one of true/1/yes/on"
}
],
"filters": [
"default:\"fallback\"",
"json",
"urlencode"
],
"limits": {
"tools_per_agent": 40,
"pre_call_tools": 10,
"on_call_tools": 20,
"post_call_tools": 10,
"runs_per_call": 40,
"response_bytes": 262144,
"promoted_value_chars": 2048,
"select_keys": 16,
"url_chars": 2048
},
"tier": "t5",
"model": "miraiminds/mira-llm",
"native_tool_calls": true,
"text_style_models": [
"hinglish"
],
"secrets_configured": true
}