The service reference
The protobuf files in the api repository define the wire contract. platform-api implements twelve services with unary operations and server-streaming reads. The inventory below describes the source; deployment and configuration determine availability.
| Service | Responsibility and representative operations |
|---|---|
IdentityService | Resolve the caller and tenant; WhoAmI and its snapshot stream |
AgentService | Agent create (with at least one schedule), read and delete, and prompt-fragment management, where a fragment an agent includes can’t be deleted (FailedPrecondition with a google.rpc.ErrorInfo of reason PROMPT_FRAGMENT_IN_USE); agent and prompt-list snapshot streams. There is no per-agent suspend: an agent is suspended only with its account (AdminService.SuspendTenant) |
SessionService | An agent’s runs, read-only: ListSessions, StreamRunEvents, the session list stream, and ListToolUses (every tool call across runs). No RPC sends an agent a message, opens a session or answers one |
CatalogService | Models, tools, MCP servers, Git-package skills through ListContainerSkills, pricing and their snapshot streams |
WorkspaceService | Trace-derived delegation graph and its stream |
ScheduleService | The only way a run starts, backed by kagent’s ScheduledRunService. Schedule reads, RunScheduleNow, DeleteSchedule, the schedule history and runs, and their streams; the service has no RPC that creates or edits a schedule, because a person sets schedules only in CreateAgent (CreateAgentRequest.schedules) and afterwards only the agent books its own wakes. DeleteSchedule refuses the last schedule that can still run the agent with FailedPrecondition and a google.rpc.ErrorInfo of reason LAST_SCHEDULE; deleting the agent removes every schedule. A deleted schedule is left out of the history, and ListScheduleRuns still answers its runs by the schedule’s UID. The history is read by agent name; a deleted agent’s name stays taken, so the history of a deleted agent is empty |
BrokerageService | Account, positions, orders, activities, portfolio/allocation history and market clock; corresponding snapshot streams |
BillingService | Payment setup/methods and standing (Stripe), invoices and current usage (Lago); read snapshot streams |
StatsService | Dashboard aggregates and gateway activity, unary and streamed |
NotificationService | List, mark read and the list snapshot stream (StreamListNotifications) |
LeaderboardService | The board, unary and streamed |
AdminService | Tenants, suspension/deletion, signup invites and the waitlist, fleet, cost and invoiced revenue, telemetry, service health, account closures and every tenant’s schedule history and runs. ListMcpServers and its stream list every MCP server the platform runs: the tools the platform server platform-api hosts offers (read by its own tools/list), every RemoteMCPServer that points an agent at a server with kagent’s Accepted condition and discovered-tool count, and tool calls and p95 latency over a trailing window from agentgateway’s metrics, with figures_basis saying whether those metrics were read |
The generated descriptors are the full RPC inventory. This page does not duplicate every StreamGet*/StreamList* declaration. Availability and limits records unimplemented
surfaces and configuration requirements.
Agent configuration
An agent is backed by the pinned Agent/AgentTemplate/Harness model. Skills select a baked Git plugin
package; the legacy catalog RPC name does not imply OCI skills. AgentSpec has no arbitrary tool,
MCP server, memory or workspace configuration. See The agent runtime for supported capabilities and creation-time choices. Agent reads include saved skill source pins,
workspace-tool state and the native tool inventory. No RPC edits an agent after creation.
Session reads
Agents are headless, so SessionService only reads. kagent’s scheduler opens a fresh session for
each run, as the tenant’s owner, and sends the schedule’s prompt as its first message, whether the schedule came due, its owner called RunScheduleNow, or the agent booked it as a wake; the transcript shows that prompt as MESSAGE_ROLE_USER. ListSessions lists the runs of the agent’s current schedules, newest first. CreateSession, DeleteSession, SendMessage and ApproveTool were removed
from the contract with the typed human-input messages. StreamRunEvents combines provisional live
observations with canonical persisted projections and checkpoints. It is not an append-only
upstream journal. See Streaming.
ListToolUses pages every tool call an agent has made across all of its runs, newest first. It does
not read the runs: the gateway records each call an agent makes to a tool server, and the platform
keeps those records per agent. So it lists the brokerage, market-data and scheduling tools, all of
which pass the gateway, and not the runtime’s own file and skill tools, which run inside the
agent’s sandbox. A row carries the tool,
the arguments, the outcome and the duration; session_id and tool_call_id name the run and the
call inside it (ToolCall.id on StreamRunEvents), which is where the result is. See The model gateway.
Billing and administration
Usage is invoiced monthly in arrears; there are no credit, purchase or auto-top-up RPCs. GetCurrentUsage reads the open month’s usage from Lago with its observation time and coverage, and ListInvoices reads Lago’s invoices. There is no charge during the month, so BillingStatus.spend_threshold_micros is absent. The card requirement and payment standing gate new paid
work. See Metering and billing.
Operator metrics distinguish unavailable, partial and complete reads. Their cost is the price book’s token rate, not a vendor invoice, and resource capacity is not measured compute billing. Effective quota counts do not imply a monetary spend cap.
All admin authorization is enforced server-side. A UI hint or a publicly downloadable admin bundle cannot grant access. Public streams use the same authentication and authorization boundary as unary calls.