pinecallDocs
MCP: the tools / Calls

Calls

calls, call, pipeline and providers: what happened, and what it ran on.

Part of the MCP server: every tool of this stage, what each parameter takes — read off the tool's own schema, as the assistant sees it — and one real call, answered by Pinecall Cloud.

calls#

The agent's newest calls: each one's id, channel, length, how it ended, its cost and its verdicts.

calls lists the agent's newest calls with their ids; call reads one whole. A row's live says somebody is on the call now; a WhatsApp, SMS or email conversation waiting for its contact is never live: its status is not ended and it has no ended_at.

parameter takes what it is
agent text the agent's name; the project's only agent when left out
limit a whole number 1–100 how many, newest first; 20 when left out
prod true or false true acts in production; left out or false, in the sandbox
called with
{
  "limit": 2
}
answered
{
  "agent": "front-desk",
  "calls": [
    {
      "call": "call_ca0bf3567bf84a528071f482b43c4a92",
      "agent": "front-desk",
      "live": false,
      "last_seq": 33,
      "status": "ended",
      "channel": "web",
      "direction": "inbound",
      "from": "web_7b7c541fea4c",
      "to": "front-desk",
      "caller": null,
      "started_at": 1791490518.67,
      "ended_at": 1791490520.76,
      "end_reason": "caller_hung_up",
      "outcome": "Your message has reached the team. Thank you for calling, and goodbye.",
      "cost": "…",
      "score": "…",
      "flags": [],
      "attention": null
    },
    "… 1 more"
  ]
}

call#

One call's log, entry by entry — every turn, tool call, result, state change, metric and verdict — a page at a time.

call reads one call's log the way the runtime keeps it: every entry with its seq, quiet ones included — the turns, each tool call and its result, the state after it, the latency of each turn, the cost, and the verdicts at hang-up (call.score). Page with after set to the next the page before answered, until next is null; types narrows a page and never ends the reading early. open says the call has not ended, and live that somebody is on it now: a WhatsApp, SMS or email conversation is open between two messages and never live.

parameter takes what it is
call text required the call's id
after a whole number 0 or more only entries after this seq: the next of the page before
limit a whole number 1–500 entries in this page; 200 when left out
types a list of texts only these entry types, such as turn.agent or call.score
prod true or false true acts in production; left out or false, in the sandbox
called with
{
  "call": "call_ca0bf3567bf84a528071f482b43c4a92",
  "types": [
    "turn.user",
    "tool.call",
    "turn.agent",
    "call.score"
  ]
}
answered
{
  "call": "call_ca0bf3567bf84a528071f482b43c4a92",
  "entries": [
    {
      "seq": 3,
      "ts": 1791490518.82,
      "call": "call_ca0bf3567bf84a528071f482b43c4a92",
      "agent": "front-desk",
      "type": "turn.user",
      "ephemeral": false,
      "data": {
        "text": "Hi, this is Ana Ruiz. My order A-1042 arrived broken, please tell the manager.",
        "item_id": "item_3d7916dcc7aa",
        "metrics": "…",
        "language": null,
        "speech_id": "speech_05809278d21d",
        "transcript_confidence": null
      }
    },
    {
      "seq": 11,
      "ts": 1791490519.77,
      "call": "call_ca0bf3567bf84a528071f482b43c4a92",
      "agent": "front-desk",
      "type": "tool.call",
      "ephemeral": false,
      "data": {
        "name": "takeMessage",
        "call_id": "toolu_01Gn8MKVAQeCDMeHeFytYmUY",
        "arguments": "…",
        "speech_id": "speech_05809278d21d"
      }
    },
    {
      "seq": 29,
      "ts": 1791490520.58,
      "call": "call_ca0bf3567bf84a528071f482b43c4a92",
      "agent": "front-desk",
      "type": "turn.agent",
      "ephemeral": false,
      "data": {
        "text": "Your message has reached the team. Thank you for calling, and goodbye.",
        "item_id": "item_217ff9c2410b",
        "metrics": "…",
        "speech_id": "speech_05809278d21d",
        "interrupted": false
      }
    },
    "… 2 more"
  ],
  "next": null,
  "live": false,
  "open": false
}

pipeline#

What the agent hears, decides and speaks with — the vendors and models of each stage — and the latency each measured.

pipeline reads the three stages a call runs on (ears, model, voice), which vendor and model each is, and the medians the agent's recent calls measured.

parameter takes what it is
agent text the agent's name; the project's only agent when left out
prod true or false true acts in production; left out or false, in the sandbox
called with
{}
answered
{
  "agent": "front-desk",
  "hears": {
    "vendor": "deepgram",
    "model": null,
    "voice_id": null,
    "language": null
  },
  "decides": {
    "vendor": "anthropic",
    "model": "claude-haiku-5-5",
    "voice_id": null,
    "language": null
  },
  "speaks": {
    "vendor": "cartesia",
    "model": null,
    "voice_id": "de38f545-c574-44e8-9b54-a7d6fec1c6b1",
    "language": "es"
  },
  "greeting": {
    "say": "Thanks for calling. How can I help?",
    "reply": null,
    "allow_interruptions": null
  },
  "voices": [],
  "providers": [
    {
      "name": "anthropic",
      "does": [
        "llm"
      ],
      "aliases": [],
      "note": "",
      "standing": "ready",
      "ready": true,
      "env": null,
      "extra": "anthropic",
      "voices_listed": false,
      "availability": "yours",
      "broken": null
    },
    {
      "name": "assemblyai",
      "does": [
        "stt"
      ],
      "aliases": [],
      "note": "",
      "standing": "no key",
      "ready": false,
      "env": null,
      "extra": "assemblyai",
      "voices_listed": false,
      "availability": "bring your own",
      "broken": null
    },
    "… 43 more"
  ],
  "defaults": {
    "llm": "anthropic",
    "stt": "deepgram",
    "tts": "cartesia"
  },
  "models": {
    "stt/deepgram": [
      "flux-general-multi"
    ],
    "tts/elevenlabs": [
      "eleven_flash_v2_5"
    ]
  },
  "calls": 20,
  "medians": [
    {
      "name": "llm_node_ttft",
      "seconds": 0.41,
      "turns": 34
    },
    {
      "name": "talk_share",
      "seconds": 1,
      "turns": 20
    }
  ],
  "unavailable_reasons": {},
  "talks": null
}

providers#

The vendors an agent may run on: what each does, whether it is ready, and whose key it would run on. Never a key.

providers lists every speech, model and voice vendor this gateway can run, what each does, and whose key a call would use. Bringing a key of your own is never a tool, because the rule is that no key is printed or passed through an assistant: give the person the command to type in their own terminal, pinecall providers add <vendor>, which reads the key with nothing echoed.

parameter takes what it is
prod true or false true acts in production; left out or false, in the sandbox
called with
{}
answered
{
  "providers": [
    {
      "name": "anthropic",
      "does": [
        "llm"
      ],
      "aliases": [],
      "note": "",
      "standing": "ready",
      "ready": true,
      "env": null,
      "extra": "anthropic",
      "voices_listed": false,
      "availability": "yours",
      "broken": null
    },
    {
      "name": "assemblyai",
      "does": [
        "stt"
      ],
      "aliases": [],
      "note": "",
      "standing": "no key",
      "ready": false,
      "env": null,
      "extra": "assemblyai",
      "voices_listed": false,
      "availability": "bring your own",
      "broken": null
    },
    {
      "name": "asyncai",
      "does": [
        "tts"
      ],
      "aliases": [],
      "note": "",
      "standing": "no key",
      "ready": false,
      "env": null,
      "extra": "asyncai",
      "voices_listed": false,
      "availability": "bring your own",
      "broken": null
    },
    "… 42 more"
  ],
  "defaults": {
    "llm": "anthropic",
    "stt": "deepgram",
    "tts": "cartesia"
  },
  "voices": [],
  "models": {
    "stt/deepgram": [
      "flux-general-multi"
    ],
    "tts/elevenlabs": [
      "eleven_flash_v2_5"
    ]
  }
}

telemetry#

Where the org's calls' traces go — its own OpenTelemetry collector — shown or cleared. Setting one is the person's, in a terminal: a header's value is a credential.

telemetry reads where a copy of every spoken call's spans goes over OTLP, and can stop it. Pointing it at a collector is never a tool, since a header's value is a credential: the person types pinecall telemetry set <url> --header <name> in a terminal, where each value is read off stdin.

parameter takes what it is
action show · clear required show says the collector, the headers' names and whether words travel; clear stops the export
prod true or false true acts in production; left out or false, in the sandbox
called with
{
  "action": "show"
}
answered
{
  "collector": {
    "endpoint": "https://otel.example.com/v1/traces",
    "header_names": [
      "x-api-key"
    ],
    "pii": false
  }
}

monitors#

The numbers the org watches over a window — latency, the judges' held rate, escalations, tool failures, spend, calls — and the line each must not cross; list them, add one, forget one.

monitors list says what the org watches in the env — each monitor's rule, who set it, the last day it fired and the value that crossed. add watches one number of the observability series (the same the console's Observability screen draws) over 1, 7 or 30 days, for every agent or one, and fires once a day as monitor.fired on the agent's log the first time a call's seal finds it on the wrong side of the line. rm forgets one. Use it when the person asks to be told when latency, the judges, escalations, tool failures, spend or volume slip.

parameter takes what it is
action list · add · rm required list says every monitor with the last day it fired; add watches a number; rm forgets one by id
name text
metric e2e_median_s · llm_median_s · held_rate · escalated_rate · tool_failure_rate · spend_usd · calls
above true or false
threshold a number
windowDays 1 or 7 or 30
agent text
id text rm: the monitor's id, from list
prod true or false true acts in production; left out or false, in the sandbox
called with
{
  "action": "add",
  "name": "slow answers",
  "metric": "e2e_median_s",
  "above": true,
  "threshold": 2,
  "windowDays": 7
}
answered
{
  "monitor": {
    "id": "mon_3f9a1c2b4d5e",
    "name": "slow answers",
    "metric": "e2e_median_s",
    "above": true,
    "threshold": 2,
    "window_days": 7,
    "agent": null,
    "created_by": "m_ana",
    "fired_on": null,
    "fired_value": null
  },
  "says": "mon_3f9a1c2b4d5e · slow answers · e2e_median_s above 2 over 7 days · every agent"
}
called with
{
  "action": "list"
}
answered
{
  "monitors": [
    {
      "id": "mon_3f9a1c2b4d5e",
      "name": "slow answers",
      "metric": "e2e_median_s",
      "above": true,
      "threshold": 2,
      "window_days": 7,
      "agent": null,
      "created_by": "m_ana",
      "fired_on": "2026-10-08",
      "fired_value": 2.41
    }
  ]
}

webhook#

Where the org posts its alerts — a monitor fired, the spend unusual, a quota out, a vendor that failed a call — shown, proven with a test post (signed when it has a secret), or cleared. Setting one is the person's, in a terminal: the secret is a credential.

webhook reads where this org's alerts are posted beyond the agent's log ({type, org, env, agent, at, data}, with x-pinecall-event and, when a secret is set, x-pinecall-signature as sha256=), proves the URL with a test post, and can stop it. Pointing it somewhere is never a tool, since the secret is a credential: the person types pinecall webhook set <url> --secret in a terminal, where the secret is read off stdin.

parameter takes what it is
action show · test · clear required show says the URL and whether posts are signed; test posts one webhook.test event and says whether the URL answered 2xx; clear stops the posting
prod true or false true acts in production; left out or false, in the sandbox
called with
{
  "action": "show"
}
answered
{
  "webhook": {
    "url": "https://hooks.example.com/pinecall",
    "signed": true
  }
}
called with
{
  "action": "test"
}
answered
{
  "sent": true,
  "error": null
}

alerts#

What the org was told in the environment, newest first: every alert kept — a monitor fired, the spend unusual, a quota out, a vendor that failed a call, a hosted app down — whether or not a webhook is set, and whether each was mailed.

alerts reads what this org was told in the env (prod for production's): each alert's kind (monitor.fired, spend.unusual, credits.exhausted, vendor.failed, app.failed), its agent, its data — the monitor and the value that crossed, the app, the quota and the calls holding its seats, the vendor and the call it failed — when it was raised, and whether it was mailed to the org's admins. Kept 90 days whether or not a webhook is set. Read it when the person asks what went wrong lately, or whether a monitor fired; monitors says what is watched, webhook where alerts are posted.

parameter takes what it is
limit a whole number 1–200 how many, newest first; 50 when left out, 200 at most
prod true or false true acts in production; left out or false, in the sandbox
called with
{
  "limit": 2
}
answered
{
  "alerts": [
    {
      "id": "alr_7f3c9e1b2a40",
      "org": "acme",
      "env": "sandbox",
      "agent": "front-desk",
      "kind": "monitor.fired",
      "data": {
        "monitor": "mon_8b1d2e3f4a5c",
        "name": "slow answers",
        "metric": "e2e_median_s",
        "value": 2.4,
        "threshold": 2
      },
      "mailed": true,
      "at": "2026-10-22T18:02:11Z"
    },
    {
      "id": "alr_1c0a5d8e9b37",
      "org": "acme",
      "env": "sandbox",
      "agent": "front-desk",
      "kind": "credits.exhausted",
      "data": {
        "quota": "minutes"
      },
      "mailed": false,
      "at": "2026-10-22T11:40:09Z"
    }
  ]
}

usage#

What the org has used of its limits this month in the environment — minutes, messages, evals, simulations, bought numbers — whose keys its calls run on, and whether its judges cost it evals.

usage answers “what does this cost?”: each quota as {limit, used} (a null limit is no limit; minutes, messages, evals, simulations and the budget in dollars start again on the first of the month, UTC), keys — the vendors the org brought keys for and the ones the runtime lends it; a vendor in neither refuses the call — and evals_billed — false when the org's judges run on its own key, where evals are never billed. Past evals a call's judges left are skipped; past simulations a simulation is refused. billing_url is where the org buys more, when the deployment sells plans.

parameter takes what it is
prod true or false true acts in production; left out or false, in the sandbox
called with
{}
answered
{
  "environment": "sandbox",
  "minutes": {
    "limit": 30,
    "used": 12.4
  },
  "messages": {
    "limit": 300,
    "used": 41
  },
  "evals": {
    "limit": 500,
    "used": 212
  },
  "simulations": {
    "limit": 10,
    "used": 3
  },
  "budget_usd": {
    "limit": null,
    "used": 0.84
  },
  "concurrent_calls": {
    "limit": 1,
    "used": 0
  },
  "agents": {
    "limit": null,
    "used": 1
  },
  "seats": {
    "limit": null,
    "used": 2
  },
  "numbers": {
    "limit": 0,
    "used": 0
  },
  "hosted_apps": {
    "limit": 1,
    "used": 0
  },
  "memory_facts": {
    "limit": null,
    "used": 14
  },
  "knowledge_chunks": {
    "limit": null,
    "used": 226
  },
  "keys": "yours: anthropic · lent by the runtime: google, cartesia, deepgram",
  "evals_billed": true,
  "judge_model": "Pinecall's",
  "billing_url": "https://billing.pinecall.io/"
}