Aller au contenu principal

agent


title: Agent sidebar_label: Agent (12) sidebar_position: 4 doc_type: reference

Agent

En bref

Invoquez l'agent IA, consultez ses sessions et analysez ses performances.

Prerequis

  • Cle API avec le preset MCP et les scopes requis
  • Client MCP configure (voir Configuration)

Exemples minimaux

Invoquer un agent et suivre l'execution

  1. Lancez une tache agent :
{
"name": "agent_invoke",
"arguments": {
"agentId": "uuid-de-lagent",
"task": "Analyse les fournisseurs actifs"
}
}
  1. Verifiez le statut d'execution :
{
"name": "agent_status",
"arguments": {
"taskId": "uuid-de-la-tache"
}
}
  1. Consultez l'historique des conversations :
{
"name": "agent_get_history",
"arguments": {
"agentId": "uuid-de-lagent"
}
}

agent_cancel

Annule l'execution d'un agent en cours.

Scopemcp.agent.execute
Lecture seuleNon
DestructifOui
IdempotentNon

Parametres

ParametreTypeRequisDescription
taskIdstringOuiIdentifiant de la tache a annuler
reasonstringNonReason for cancellation

Reponse

ChampTypeDescription
taskIdstring
cancelledboolean
previousStatusstring
messagestring

Outils lies : agent_status, agent_invoke


agent_create_from_template

Cree un agent depuis un template pre-configure.

Scopemcp.write
Lecture seuleNon
DestructifNon
IdempotentNon

Parametres

ParametreTypeRequisDescription
customizationsobjectOui
namestringOuiName for the new agent
templateIdstringOui
descriptionstringNonCustom description (optional, uses template default if not provided)
folderIdstring (uuid)NonFolder ID to place agent in
removeToolsarrayNonTools to remove from template defaults
systemPromptstringNonOverride template system prompt
toolsarrayNonAdditional tools to enable

Reponse

ChampTypeDescription
successboolean
agentIdstring
agentNamestring
templateUsedstring
templateCategorystring
toolsEnabledarray
messagestring
availableTemplatesarray

Outils lies : agent_list, agent_get, agent_invoke


agent_get

Recupere les details d'un agent (configuration, outils, historique).

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
agentIdstringNonAgent ID (UUID) to retrieve
agentNamestringNonAgent display name (e.g., "Compliance Analyst Assistant"), case-insensitive
apiNamestringNonAgent API name/slug (e.g., "compliance-analyst-assistant")

Outils lies : agent_list, agent_invoke, agent_get_history


agent_get_history

Consulte l'historique des conversations d'un agent.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
agentApiNamestringNonAgent API name (alternative to agentId)
agentIdstring (uuid)NonIdentifiant de l'agent
includeMessagesbooleanNonInclude message logs for each session (defaut : true)
limitnumberNonNombre maximum de conversations (defaut : 20)
messageLimitnumberNonMaximum messages per session (defaut : 20)
offsetnumberNonOffset for pagination (defaut : 0)
sessionIdstring (uuid)NonSpecific session/conversation ID to get history for

Reponse

ChampTypeDescription
agentIdstring
agentNamestring
agentApiNamestring
sessionsarray
paginationobject
totalnumber
limitnumber
offsetnumber
hasMoreboolean

Outils lies : agent_get_tool_calls, agent_invoke


agent_get_performance

Affiche les metriques de performance d'un agent.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
agentIdstring (uuid)OuiAgent definition ID to analyze
includeErrorAnalysisbooleanNonInclude error pattern analysis (defaut : true)
includeLlmBreakdownbooleanNonInclude per-model LLM statistics (defaut : true)
includeToolBreakdownbooleanNonInclude per-tool statistics (defaut : true)
timeRangechoix (1h, 24h, 7d, 30d)NonTime range for metrics aggregation (defaut : "24h")

Reponse

ChampTypeDescription
agentIdstring
timeRangestring
periodobject
startstring
endstring
sessionsobject
totalnumber
successfulnumber
failednumber
retryablenumber
cancellednumber
successRatenumber
toolsarray
llmarray
errorsarray
summaryobject
healthScorenumber
recommendationsarray

Outils lies : agent_get_tool_calls, agent_get_history


agent_get_tool_calls

Liste les appels d'outils effectues par un agent lors d'une execution.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
sessionIdstring (uuid)OuiSession ID (conversation ID) from agent_invoke
includeErrorsbooleanNonInclude error details for failed tool calls (defaut : true)
includeResultsbooleanNonInclude tool call results (output preview) (defaut : true)
limitnumberNonMaximum tool calls to return (defaut : 50)

Reponse

ChampTypeDescription
sessionIdstring
agentIdstring
sessionStatusstring
toolCallsarray
statsobject
totalCallsnumber
successCountnumber
errorCountnumber
totalDurationMsnumber
successRatenumber

Outils lies : agent_status, agent_get_history


agent_invoke

Invoque un agent IA pour executer une tache. L'execution est asynchrone.

Scopemcp.agent.execute
Lecture seuleNon
DestructifNon
IdempotentNon

Parametres

ParametreTypeRequisDescription
messagestringOuiMessage/prompt to send to the agent
agentIdstring (uuid)NonIdentifiant de l'agent a invoquer
apiNamestringNonAgent API name to invoke (alternative to agentId)
contextrecordNonContexte additionnel pour l'agent (optionnel)
conversationIdstring (uuid)NonExisting conversation ID for multi-turn chat
streamingbooleanNonEnable streaming response (recommended for long tasks) (defaut : true)

Reponse

ChampTypeDescription
taskIdstring
conversationIdstring
statusenum
streamUrlstring
messagestring

Exemple

{
"name": "agent_invoke",
"arguments": {
"agentId": "uuid-de-lagent",
"task": "Analyse les fournisseurs actifs"
}
}

Outils lies : agent_status, agent_cancel, agent_get_tool_calls


agent_list

Liste les agents IA disponibles dans votre workspace.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
agentTypechoix (conversational, task_executor, data_analyzer, custom)NonFilter by agent type
folderIdstring (uuid)NonFilter by folder ID
limitnumberNonMaximum agents to return (defaut : 50)
offsetnumberNonOffset for pagination (defaut : 0)
searchstringNonSearch by agent name or description
statuschoix (draft, published, archived)NonFilter by agent status

Reponse

ChampTypeDescription
agentsarray
totalnumber
hasMoreboolean

Exemple

{
"name": "agent_list",
"arguments": {}
}

Outils lies : agent_get, agent_invoke, agent_get_performance


agent_status

Consulte le statut d'execution d'un agent (en cours, termine).

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
taskIdstringOuiTask ID from agent_invoke

Reponse

ChampTypeDescription
taskIdstring
statusenum
progressnumber
resultunknown
responsestring
toolCallsarray
toolstring
metadatarecord
errorstring
cancellationReasonstring
startedAtstring
completedAtstring

Outils lies : agent_invoke, agent_cancel, agent_get_tool_calls


agent_studio_get_definition

Recupere une definition d'agent specifique.

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
agentIdstring (uuid)NonAgent ID (UUID)
agentNamestringNonAgent name (alternative to agentId, case-insensitive lookup)

Outils lies : agent_studio_list_definitions, agent_studio_update_definition, agent_invoke


agent_studio_list_definitions

Liste les definitions d'agents (templates de configuration).

Scopemcp.read
Lecture seuleOui
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
agentTypestringNonFilter by agent type
folderIdstring (uuid)NonFilter by folder ID
limitnumberNonNombre maximum de resultats (defaut : 20)
offsetnumberNonDecalage pour la pagination (defaut : 0)
searchstringNonSearch agents by name or description
statuschoix (draft, published, archived)NonFilter by agent status

Reponse

ChampTypeDescription
agentsarray
totalnumber
hasMoreboolean

Outils lies : agent_studio_get_definition, agent_studio_update_definition, agent_invoke


agent_studio_update_definition

Met a jour la definition d'un agent.

Scopemcp.write
Lecture seuleNon
DestructifNon
IdempotentOui

Parametres

ParametreTypeRequisDescription
agentIdstring (uuid)OuiID of the agent to update
descriptionstringNonNew agent description
iconstringNonAgent icon identifier
namestringNonNew agent name
statuschoix (draft, published, archived)NonAgent status

Reponse

ChampTypeDescription
agentIdstring
namestring
statusstring
updatedFieldsarray
updatedAtstring

Outils lies : agent_studio_get_definition, agent_studio_list_definitions


Depannage

CodeMessageSolution
403Scope insuffisantAjoutez mcp.agent.execute a votre cle API.

Besoin d'aide ?

Ecrivez-nous : Support et contact.