Skip to content
Konstera
Capability catalogue
cloudreadfanout

cloud.costs.summary

Summarise cloud costs

Actual spend for a period, grouped by service (one entry per connection). At most one year.

Effect
read
Fanout
yes
Cache TTL
none
Traits
none
Implemented by

Azure, AWS

The tenant picks one of these when they bind this capability at install time. New implementations land as connectors ship — browse the connector catalogue.

Request arguments

Passed as the args parameter to ctx.capability.call("cloud.costs.summary", …).

FieldTypeRequiredDescription
sinceIsostringnoStart date; default: first day of the current month
format: date
untilIsostringnoEnd date; default: today
format: date

Response

Returned by ctx.capability.call("cloud.costs.summary", …).

Array; each element is an object with the following fields.

FieldTypeRequiredDescription
tostringno
fromstringno
totalnumberyes
groupsarray<object>yes
accountstringno
currencystringyes
providerstringyes

Example call

From inside your agent's handle(). The kernel resolves cloud.costs.summary to the tenant's connector binding at invocation time.

response = await ctx.capability.call(
    "cloud.costs.summary",
    args={
        "sinceIso": "...",
        "untilIso": "...",
    },
)

See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.