Skip to main content
Glama

get_profile

Read-only

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

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
slugNoWith agent_kind: this exact profile slug (any status).
fieldsNoOnly return these columns of the raw profile row (e.g. ['voice_config','memory_config']). Omit for the whole row.
agent_kindNoLook up by agent_kind (+ slug) instead of profile_id.
profile_idNoAgent profile UUID (list_profiles / get_profile).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

readOnlyHint already covers the safety profile, but the description adds substantial behavior the annotation cannot convey: the active-only filter semantics, the coexistence of legacy mcp_servers labels versus mcp_attachments with an explicit statement that they can disagree and which is authoritative, and that fields trims only the raw row while resolved label lists are always returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose in the first clause, then progressively adds lookup semantics, return-shape caveats, and trimming behavior. A few digressions — e.g. the internal reference 'core/agent_profile.py::_fetch_mcp_attachments' — add length without helping the calling agent decide how to invoke it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only lookup with five optional parameters, a dual-resolution return shape, and an output schema, the description covers every decision point an agent faces: which key to use, what the status filter does, which of the two MCP representations to trust, and where prompt text lives. Nothing needed for a correct call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning beyond it: the interaction between agent_kind and slug (and its status-filter consequence), and the fact that trimming via fields leaves resolved label lists intact. The env parameter's branch semantics are left to the schema, which already explains them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Full config of one profile') and immediately scopes the two lookup keying schemes (profile_id vs agent_kind+slug+env). It also draws an explicit boundary against the prompts tool for prompt text, so the agent can distinguish this from the nearest sibling without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clearly documents the two selection modes and, critically, the consequence of omitting slug: results are restricted to status="active" to stay deterministic, while an explicit slug bypasses that filter and may return any status. It also redirects to prompts(action="get") for prompt content. It stops short of stating which mode to prefer (id when known vs kind lookup) or naming list_profiles as the discovery path, leaving that inference to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.