get_profile
Retrieve an AI agent profile's full configuration by profile ID or agent kind, slug, and environment, including resolved tools, data sources, MCP servers, models, and prompt-version pins.
Instructions
Full config of one profile (by profile_id, or agent_kind+slug+env): the row plus resolved names for its tools, data sources, MCP servers, models, and prompt-version pins. When looked up by agent_kind without a slug, restricts to status="active" (matching what the portal serves) so the result is deterministic even if drafts/forks share the agent_kind; passing an explicit slug bypasses that filter and can return any status.
Returns BOTH the legacy `mcp_servers` label list (resolved from
`mcp_server_ids[]`, still driving the dark-launch snapshot) and the new
`mcp_attachments` (resolved from `agent_profile_mcp_servers`, the join
the flag-on resolver reads — see
core/agent_profile.py::_fetch_mcp_attachments). The two can disagree
while a profile still carries old labels; `mcp_attachments` is the
source of truth. `agent_type` is the agent's
user-defined category ({slug, display_name, color}) or null.
`fields` trims the raw `profile` row to the named columns (the row
carries large JSON blobs — voice_config, memory_config,
input_validators); the resolved label lists are always returned.
Prompt TEXT is not here — prompts(action="get", profile_id=...)
returns the served prompt content.Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| slug | No | With agent_kind: this exact profile slug (any status). | |
| fields | No | Only return these columns of the raw profile row (e.g. ['voice_config','memory_config']). Omit for the whole row. | |
| agent_kind | No | Look up by agent_kind (+ slug) instead of profile_id. | |
| profile_id | No | Agent profile UUID (list_profiles / get_profile). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |