Frodo Library - v5.0.0-47
    Preparing search index...

    Type Alias McpToolExecutionResult

    Result envelope returned by all runtime executions.

    type McpToolExecutionResult = {
        data: unknown;
        descriptorId?: string;
        itemResults?: McpItemResults & { summary: string };
        metadata?: McpToolExecutionMetadata;
        partial?: true;
        toolName: string;
    }
    Index
    data: unknown

    Underlying method result payload.

    descriptorId?: string

    Descriptor id backing the execution, if applicable.

    itemResults?: McpItemResults & { summary: string }

    The failed items of a bulk call, with the number of items that succeeded. Present only together with partial. A bulk function of the facade takes a trailing resultCallback that an MCP caller cannot send; the runtime passes its own, so a section or an item that fails (for example for lack of a scope of the credential, code INSUFFICIENT_SCOPE) no longer ends the call with one error that hides the readable part.

    Type Declaration

    • summary: string

      What data holds and what the failures mean, for a reader that does not know the counts.

    Optional execution metadata for scope and pagination diagnostics.

    partial?: true

    true when at least one item of a bulk call failed: data then holds what the function returned for the items that did not fail, and McpToolExecutionResult.itemResults lists the failures. Absent (the result is exactly what it was before) when no item failed.

    Not related to metadata.pagination.isPartial, which says that the rows of a list were cut to a page.

    toolName: string

    Tool name that was executed.