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 |
|---|---|
mcpSessionId | Unique identifier of the MCP session |
tool | Name of the MCP tool invoked (e.g. hopex_query, hopex_mutation) |
parameters | Parameters passed to the tool by the AI client |
success | true if the tool executed without error; false otherwise |
resultLength | Length of the result payload in characters |
estimatedTokens | Estimated number of LLM tokens in the result (approximated as resultLength / 4) |
Resource Access
MCPServerResourceExecution
An MCP resource has been read by an AI client. One event is emitted per resource read, after the read completes (successfully or not).
Context (JSON) | Comment |
|---|---|
mcpSessionId | Unique identifier of the MCP session |
resource | Name of the MCP resource read |
parameters | Parameters passed to the resource read request |
success | true if the resource was read without error; false otherwise |
resultLength | Length of the result payload in characters |
estimatedTokens | Estimated number of LLM tokens in the result (approximated as resultLength / 4) |