Agents
MindGraph agents are long-running knowledge workers with durable memory, scoped context, explicit tool access, and an audit trail. They can research, maintain Project knowledge, use approved MCP tools, and return for scheduled work without starting from zero.
Configure and supervise agents in the dashboard. The HTTP surface below powers the same sessions, schedules, scope controls, and activity views.
Templates
Templates provide role-specific instructions, a current default model, starter prompts, and suggested integrations. You can change the instructions, model, budget, Project scope, and connected tools when you create an agent.
| Template | Designed for |
|---|---|
knowledge_agent | Research, analysis, graph building, and evolving knowledge articles. |
client_research | Living dossiers on clients, prospects, accounts, and market context. |
personal_assistant | Inbox and calendar triage, commitments, and daily preparation. |
project_manager | Goals, plans, milestones, blockers, risks, and status reporting. |
Create and manage agents
/v1/agentsCreate an agent/v1/agentsList agents in the current organization/v1/agents/{id}Get one agent/v1/agents/{id}Update configuration or pause state/v1/agents/{id}/archiveArchive an agent and its sessions/v1/agents/templatesList current templates, prompts, models, and suggested connectionscurl -X POST https://api.mindgraph.cloud/v1/agents \
-H "Authorization: Bearer mg_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Account Intelligence",
"template_type": "client_research",
"custom_instructions": "Maintain a cited dossier and flag material changes.",
"model": "claude-opus-4-6",
"daily_credit_budget": 500
}'
Scope and identity
The server resolves agent identity from its bound credential and re-evaluates access for each request. The agent cannot expand its own authority by supplying another agent_id.
- Project scope — set a default Project on the agent, then narrow or override it for a session or schedule where permitted.
- Space grants — grant read or write access and, when needed, a classification ceiling.
- Project roles — use viewer, editor, or agent roles; corpus admission alone is not authorization.
- Provenance — graph versions and execution records identify the agent and delegated request context.
A broad organization-wide context is available, but Project scope is the safer default for work that should stay inside a known source boundary. See Governance & Access.
Tool grants and MCP
Connecting a service does not automatically expose all of its tools to every agent. The connection is inspected and synchronized into a registry, then tools are granted to an agent explicitly. Native and MCP tools pass through the same authorization and policy checks.
Owners and admins configure these grants in the agent's Governance tab. See MCP Connections for connection custody, registry synchronization, and approval modes.
Policies and approvals
Before a consequential tool call runs, MindGraph checks identity, context scope, tool grant, and published governance policy. A policy can allow, deny, or require human approval. Approval-required calls pause with their arguments and resume only after an authorized dashboard user decides; access and registry drift are checked again before execution.
Policy decisions, approvals, executions, and resulting graph changes remain available in the governance audit trail. Revoking a grant or pausing an agent applies to the next request.
Sessions
/v1/agents/sessionsCreate a session, optionally with initial message and Project scope/v1/agents/sessionsList sessions, optionally filtered by agent_id/v1/agents/sessions/{sid}Get one session/v1/agents/sessions/{sid}/messageSend a message to the session/v1/agents/sessions/{sid}/interruptInterrupt in-flight work/v1/agents/sessions/{sid}/archiveArchive a session/v1/agents/sessions/{sid}/eventsRead paginated messages, tool calls, and results/v1/agents/sessions/{sid}/streamSubscribe to live Server-Sent Events/v1/agents/sessions/{sid}/pending-inputRead a pending question from the agent/v1/agents/sessions/{sid}/respondAnswer a pending questionSchedules
A schedule combines a cron expression, message template, budget, and optional Project scope. Use it for recurring briefs, account monitoring, knowledge maintenance, or status reviews.
/v1/agents/schedulesCreate a schedule/v1/agents/schedulesList schedules, optionally filtered by agent_id/v1/agents/schedules/{id}Update schedule configuration or enabled state/v1/agents/schedules/{id}Delete a scheduleActivity and audit
/v1/agents/activityOrganization-wide agent event feed/v1/agents/activity/wsReal-time activity WebSocket/v1/agents/{id}/workActive sessions, pending decisions, and upcoming schedules/v1/agents/{id}/articlesKnowledge articles authored by the agent