Tool Execution
MCPServerToolExecution
An MCP tool has been invoked by an AI client. One event is emitted per tool call, after the call completes (successfully or not).
Context (JSON) | Comment |
|---|---|
mcpCorrelationId | Identifier of the caller (see Correlation Identifier) |
tool | Name of the MCP tool invoked (e.g. Execute_Query, Execute_Mutation, Get_Diagram_Image) |
parameters | Parameters passed to the tool by the AI client |
success | true if the tool executed without error; false otherwise (the result is then also flagged as an error to the client). true means the tool succeeded, not that the response reached the client |
resultLength | Size of the result in characters, all content included (images counted in their base64 form) |
estimatedTokens | Estimated number of LLM tokens in the text part of the result (approximated as text length / 4). Images are not counted |