Skip to main content
Glama
grammy-mcp
by louietyj

getBusinessAccountStarBalance

Read-only

Returns the Telegram Stars balance for a managed business account; requires can_view_gifts_and_stars business bot right. Use it to check available Stars before gift-related actions.

Instructions

Returns the amount of Telegram Stars owned by a managed business account. Requires the can_view_gifts_and_stars business bot right. Returns StarAmount on success.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "business_connection_id": "<business_connection_id>"
    },
    "name": "getBusinessAccountStarBalance"
  }
}

Input Schema

NameRequiredDescriptionDefault
business_connection_idYesUnique identifier of the business connection

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description's job is smaller; it still adds the permission requirement and the return type (StarAmount), neither of which is in the structured data. It does not mention failure modes when the bot right is missing or whether the connection can expire, so the added context is real but thin.

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

Conciseness5/5

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

Three short sentences, each carrying distinct information: purpose, permission gate, return type. The purpose is front-loaded and there is no redundant restatement of the tool name.

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 one-parameter read-only lookup, the description covers what it does, what right is needed, and what comes back. That, combined with annotations covering the safety profile, leaves nothing an agent needs in order to invoke it correctly.

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?

There is a single required parameter with 100% schema description coverage, so the schema already defines business_connection_id. The description adds no format, sourcing, or validity detail beyond that, which matches the baseline 3 for high-coverage schemas.

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

Purpose4/5

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

The description uses a specific verb and resource ("Returns the amount of Telegram Stars") and scopes it to "a managed business account," which implicitly separates it from the sibling getMyStarBalance that reads the caller's own balance. It stops short of naming that alternative explicitly, but an agent can still tell the two apart from the scope wording and the required business_connection_id.

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

Usage Guidelines3/5

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

It states a hard prerequisite (the can_view_gifts_and_stars business bot right), which is genuine use guidance for authorization. It gives no when-to-use vs when-not guidance and does not point at the sibling getMyStarBalance or getBusinessAccountGifts as alternatives, so the routing is only implied by the managed-account scope.

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

Deploy Server

Other Tools