Skip to main content

Agent object

Returned by create, list, update, archive, and GET /v1/agents/{agent_id} when version is omitted.
FieldTypeDescription
idstringAgent ID with the agent_ prefix
typestringAlways "agent"
namestringAgent name, 1-256 characters
descriptionstringAgent description, at most 2048 characters
modelstringModel identifier. Requests and responses use a string value
systemstringSystem prompt, at most 100000 characters
toolsarray of Agent toolTool configuration list, up to 128 entries. Defaults to []
mcp_serversarray of MCP serverMCP server list, up to 20 entries. Defaults to []
skillsarray of Skill bindingSkill bindings, up to 20 entries. Defaults to []
metadataobjectMetadata object. Defaults to {}
versionintegerCurrent Agent version, starting at 1
archivedbooleanWhether the Agent is archived
archived_atstring | nullArchive time in UTC, or null when not archived
created_atstringCreation time in UTC
updated_atstringLast update time in UTC

Agent version snapshot

Returned by GET /v1/agents/{agent_id} when version is provided, and by GET /v1/agents/{agent_id}/versions.
FieldTypeDescription
idstringAgent ID with the agent_ prefix
typestringAlways "agent"
namestringAgent name
descriptionstringAgent description
modelstringModel identifier
systemstringSystem prompt
toolsarray of Agent toolTool configuration list
mcp_serversarray of MCP serverMCP server list
skillsarray of Skill bindingSkill bindings
metadataobjectMetadata object
versionintegerVersion number for this snapshot
archived_atstring | nullArchive time in UTC, or null when not archived in the snapshot
created_atstringAgent creation time in UTC
updated_atstringLast update time for this snapshot in UTC

Agent tool

tools[] is a union distinguished by type.
FieldTypeApplies toDescription
typestringAllRequired. Valid values: agent_toolset_20260401, mcp_toolset, custom
enabled_toolsarray of stringagent_toolset_20260401Built-in tool allowlist. A non-empty array is a strict allowlist. Omit it or pass [] to use the default built-in toolset, with disallowed_tools and configs[].enabled still applied. Values must use one of the built-in tool names below
disallowed_toolsarray of stringagent_toolset_20260401Built-in tools to hide and deny. Values must use one of the built-in tool names below. A tool cannot appear in both enabled_tools and disallowed_tools
configsarray of Tool configagent_toolset_20260401, mcp_toolsetPer-tool enablement and permission rules. This is where per-tool permissions are configured
mcp_server_namestringmcp_toolsetRequired. Must match one mcp_servers[].name value
namestringcustomRequired custom tool name. It must not collide with a built-in tool name and must not start with mcp__
descriptionstringcustomRequired custom tool description
input_schemaobjectcustomRequired JSON Schema object. input_schema.type must be "object"
Custom tools do not support permission_policy; configure permissions through configs[].permission_policy on agent_toolset_20260401 or mcp_toolset entries.

Built-in tool names

Use these built-in tool names:
Tool name
Bash
DeliverArtifacts
Edit
Glob
Grep
Read
WebFetch
WebSearch
Write

Tool config

Used in tools[].configs[].
FieldTypeRequiredDescription
namestringYesTool name to configure. For agent_toolset_20260401, use one built-in tool name. For mcp_toolset, use the raw tool name exposed by that MCP server
enabledbooleanNofalse hides and denies the named tool. true explicitly enables the named tool
permission_policyPermission policyNoRuntime permission behavior for this tool

Permission policy

FieldTypeRequiredDescription
typestringYesValid values: always_allow, always_ask, always_deny
always_allow executes without pausing, always_ask pauses for a user.tool_confirmation event, and always_deny returns a denied tool result.

MCP server

Used in mcp_servers[].
FieldTypeRequiredDescription
namestringYesUnique MCP server name within this Agent
typestringYesSupported value: "http"
urlstringYesStreamable HTTP MCP endpoint URL
Authentication for MCP servers is configured through Vaults.

Skill binding

Used in skills[].
FieldTypeRequiredDescription
typestringYesValid values: qoder, custom
skill_idstringYesSkill identifier
versionstringNoOptional non-empty version string

Agent setup

Create a reusable, versioned agent configuration.