Skip to content

call-actor/get-actor-run don't expose Actor run cost #1429

Description

@jirispilka

call-actor and get-actor-run fetch the Actor run object, which includes usageTotalUsd/usageUsd from the Apify API, but these are only attached to the MCP _meta field (com.apify/ActorRun), never to structuredContent. Most MCP clients (and the model) only see structuredContent, so the run cost is effectively invisible after calling an Actor.

get-actor-run-list already puts usageTotalUsd directly in structuredContent per item (actorRunListItemSchema), so the three tools are inconsistent.

Verified locally via mcpc @stdio tools-call call-actor: the raw response has

"_meta": { "com.apify/ActorRun": { "usageTotalUsd": 0.00005 } }

but structuredContent.stats only contains runTimeSecs, computeUnits, memMaxBytes — no cost.

Affected: call-actor, get-actor-run (both default and widget response variants).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    medium priorityMedium priority issues to be done in a couple of sprints.t-aiIssues owned by the AI team.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions