Skip to main content
Glama

read sync usage and balance

account_get-usage
Read-onlyIdempotent

Check remaining spendable credits and free monthly allowances for the current billing period, including another organization when needed, to confirm lipsync coverage.

Instructions

Read what the session’s sync. organization has left to spend in the current billing period, or pass organizationId to check another organization for this call without switching the session. Use this before lipsync to check free coverage; an estimate's base price is not a charge when the request is fully covered. credits gives balance, available (spendable now) and inFlight (held by running jobs); freeMonthlyLimits gives generations and text-to-speech used and max, with monthlyResetDate. A script needs both allowances. elevenLabsKeyConnected=true means speech may incur external provider charges. Missing hasActiveCredits, exhaustion or provider-key fields mean unknown coverage, never false. Only when credits and freeMonthlyLimits are both null does it fill usage with the period's billed totalCostCents, totalFrames and totalTtsSeconds, and usage stays null if the API reports those totals as incomplete. canManageBilling is true only when billing allows it and the caller is an owner or admin. Not for what one past generation cost (generations_get-costs, when available), a quote for paid work (generations_estimate-cost), or plan limits and organization (account_get-context). Buys no credits, changes no plan and starts no generation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "account_get-usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
organizationIdNoRun only this call in another of the user’s Sync organizations, by id from organizations_list, when the user asks for it (for example “generate this in the Acme org”). The session keeps its organization; reads of the ids this call returns stay in this organization. Omit to use the session’s organization.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.11
    • addedInput schema / properties / organizationId
      Added value: +{
      +  "description": "Run only this call in another of the user’s Sync organizations, by id from organizations_list, when the user asks for it (for example “generate this in the Acme org”). The session keeps its organization; reads of the ids this call returns stay in this organization. Omit to use the session’s organization.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": false,
      -    "properties": {
      -      "canManageBilling": {
      -        "type": "boolean"
      -      },
      -      "credits": {
      -        "anyOf": [
      -          {
      -            "anyOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "available": {
      -                    "type": "number"
      -                  },
      -                  "balance": {
      -                    "type": "number"
      -                  },
      -                  "inFlight": {
      -                    "type": "number"
      -                  }
      -                },
      -                "required": [
      -                  "balance",
      -                  "available",
      -                  "inFlight"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "freeMonthlyLimits": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "generations": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "max": {
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "used": {
      -                    "minimum": 0,
      -                    "type": "number"
      -                  }
      -                },
      -                "required": [
      -                  "used",
      -                  "max"
      -                ],
      -                "type": "object"
      -              },
      -              "monthlyResetDate": {
      -                "format": "date-time",
      -                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -                "type": "string"
      -              },
      -              "tts": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "max": {
      -                    "minimum": 0,
      -                    "type": "number"
      -                  },
      -                  "used": {
      -                    "minimum": 0,
      -                    "type": "number"
      -                  }
      -                },
      -                "required": [
      -                  "used",
      -                  "max"
      -                ],
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "generations",
      -              "tts",
      -              "monthlyResetDate"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "plan": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "usage": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "totalCostCents": {
      -                "type": "number"
      -              },
      -              "totalFrames": {
      -                "minimum": 0,
      -                "type": "number"
      -              },
      -              "totalTtsSeconds": {
      -                "minimum": 0,
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "totalCostCents",
      -              "totalFrames",
      -              "totalTtsSeconds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "plan",
      -      "canManageBilling",
      -      "credits",
      -      "freeMonthlyLimits",
      -      "usage"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "generationId": {
      -            "type": "string"
      -          },
      -          "importJobId": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "importStatus": {
      -            "enum": [
      -              "queued",
      -              "downloading",
      -              "processing",
      -              "completed",
      -              "failed"
      -            ],
      -            "type": "string"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "progress": {
      -            "maximum": 100,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "retryAfterMs": {
      -            "type": "number"
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          },
      -          "status": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "message"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "canManageBilling": {
      +        "type": "boolean"
      +      },
      +      "credits": {
      +        "anyOf": [
      +          {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available": {
      +                    "type": "number"
      +                  },
      +                  "balance": {
      +                    "type": "number"
      +                  },
      +                  "inFlight": {
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "balance",
      +                  "available",
      +                  "inFlight"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "elevenLabsKeyConnected": {
      +        "type": "boolean"
      +      },
      +      "freeGenerationsExhausted": {
      +        "type": "boolean"
      +      },
      +      "freeMonthlyLimits": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "generations": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "max": {
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "used": {
      +                    "minimum": 0,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "used",
      +                  "max"
      +                ],
      +                "type": "object"
      +              },
      +              "monthlyResetDate": {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +                "type": "string"
      +              },
      +              "tts": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "max": {
      +                    "minimum": 0,
      +                    "type": "number"
      +                  },
      +                  "used": {
      +                    "minimum": 0,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "used",
      +                  "max"
      +                ],
      +                "type": "object"
      +              }
      +            },
      +            "required": [
      +              "generations",
      +              "tts",
      +              "monthlyResetDate"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "freeTtsExhausted": {
      +        "type": "boolean"
      +      },
      +      "hasActiveCredits": {
      +        "type": "boolean"
      +      },
      +      "organization": {
      +        "additionalProperties": false,
      +        "description": "The Sync organization this call ran in.",
      +        "properties": {
      +          "id": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name"
      +        ],
      +        "type": "object"
      +      },
      +      "plan": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "usage": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "totalCostCents": {
      +                "type": "number"
      +              },
      +              "totalFrames": {
      +                "minimum": 0,
      +                "type": "number"
      +              },
      +              "totalTtsSeconds": {
      +                "minimum": 0,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "totalCostCents",
      +              "totalFrames",
      +              "totalTtsSeconds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "plan",
      +      "canManageBilling",
      +      "credits",
      +      "freeMonthlyLimits",
      +      "usage"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "generationId": {
      +            "type": "string"
      +          },
      +          "importJobId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "importStatus": {
      +            "enum": [
      +              "queued",
      +              "downloading",
      +              "processing",
      +              "completed",
      +              "failed"
      +            ],
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "progress": {
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "retryAfterMs": {
      +            "type": "number"
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "message"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv0.1.5

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond them: usage is populated only when credits and freeMonthlyLimits are both null, remains null when totals are incomplete, and missing fields mean unknown rather than false. The canManageBilling and elevenLabsKeyConnected semantics also help. Docked one point because the credits/available/inFlight/freeMonthlyLimits field walkthrough is mostly return-shape documentation that an output schema already carries.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and exclusions are front-loaded, but the middle is an overstuffed field inventory (credits/available/inFlight/freeMonthlyLimits/monthlyResetDate) that duplicates the output schema rather than adding behavioral value. Semantically dense multiple-clause sentences with 'or' lists make it slower to parse than needed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read tool with one optional parameter, it covers everything an agent needs: what is returned, the null/fallback rules, how to interpret unknown versus false, scope of side effects, and where to go for adjacent needs. Nothing essential to calling it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single optional organizationId is fully documented in the schema, including the id source and session behavior. The description's 'pass organizationId to check another organization for this call without switching the session' largely restates that, adding no new syntax or constraints, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read what the session's sync. organization has left to spend in the current billing period') plus the alternate-organization variant. It names the sibling tools it is not (generations_get-costs, generations_estimate-cost, account_get-context), so an agent can distinguish it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a positive trigger ('Use this before lipsync to check free coverage') and explicit exclusions for past generation cost, paid-work quotes, and plan limits. The closing 'Buys no credits, changes no plan and starts no generation' further bounds the use case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.