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", …).
| Field | Type | Required | Description |
|---|---|---|---|
| sinceIso | string | no | Start date; default: first day of the current month format: date |
| untilIso | string | no | End date; default: today format: date |
Response
Returned by ctx.capability.call("cloud.costs.summary", …).
Array; each element is an object with the following fields.
| Field | Type | Required | Description |
|---|---|---|---|
| to | string | no | |
| from | string | no | |
| total | number | yes | |
| groups | array<object> | yes | |
| account | string | no | |
| currency | string | yes | |
| provider | string | yes |
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.