Skip to main content

get_agent

Fetch a visible Agent definition's metadata and complete current active behavior by the exact name returned from list_agents. This inspects a stored definition; it does not start, assign, or execute an agent. A missing or hidden target is reported identically as not found.

The name is caller-relative: bare selects personal content for a standalone credential and the organization catalogue for an organization credential; me/name selects the represented member's private organization space, and <team>/name selects a bound team.

Parameters​

ParameterTypeRequiredDescription
namestringYesExact caller-relative name returned by list_agents.

Response​

FieldTypeDescription
namestringCanonical caller-relative MCP address.
descriptionstringDescription when one is present.
scopestringOwnership scope.
active_versionintegerActive immutable version read for this call.
version_limit_policystringreject or prune_oldest.
definitionobjectComplete current identity, categories, and components.

Example​

{ "name": "engineering/reviewer" }

Result:

{
"name": "engineering/reviewer",
"description": "Reviews risky changes",
"scope": "team",
"active_version": 2,
"version_limit_policy": "reject",
"definition": {
"identity": "You are a careful code reviewer.",
"categories": [],
"components": []
}
}

Errors​

CodeCause
agent_not_foundNo Agent with that name is visible; absence and hidden state match.
capability_deniedThe credential lacks Agents.
invalid_argumentsInput is missing or does not match the schema.
internal_errorAn unexpected server error occurred.

Notes​

  • The tool is governed: it requires Tools and tool-policy admission, plus Agents for the content read. No Agent management permission is required.
  • Each call resolves the current active version. A later behavior update is visible immediately; after a rename, use the new qualified name.