Tool: list_project_billing_info
Lists the billing information for all projects linked to a billing account.
The following code sample shows how to use curl to call the list_project_billing_info MCP tool.
| Curl Request |
|---|
curl --location 'https://cloudbilling.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_project_billing_info", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request message for ListProjectBillingInfo.
ListProjectBillingInfoRequest
| JSON representation |
|---|
{ "name": string, "pageSize": integer, "pageToken": string } |
| Fields | |
|---|---|
name |
Required. The resource name of the billing account associated with the projects that you want to list. For example, |
pageSize |
Requested page size. The maximum page size is 100; this is also the default. |
pageToken |
A token identifying a page of results to be returned. This should be a |
Output Schema
Request message for ListProjectBillingInfoResponse.
ListProjectBillingInfoResponse
| JSON representation |
|---|
{
"projectBillingInfo": [
{
object ( |
| Fields | |
|---|---|
projectBillingInfo[] |
A list of |
nextPageToken |
A token to retrieve the next page of results. To retrieve the next page, call |
ProjectBillingInfo
| JSON representation |
|---|
{ "name": string, "projectId": string, "billingAccountName": string, "billingEnabled": boolean } |
| Fields | |
|---|---|
name |
Output only. The resource name for the |
projectId |
Output only. The ID of the project that this |
billingAccountName |
The resource name of the billing account associated with the project, if any. For example, |
billingEnabled |
Output only. True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌