Skip to main content
Glama

Get an app's plan and invoices

cometchat_get_plan
Read-onlyIdempotent

Returns an app's plan, state, trial end and invoices (invoices only for the app's owner). Plans can only be changed in the dashboard.

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": {
      "app_id": "<app_id>"
    },
    "name": "cometchat_get_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe CometChat App ID (from cometchat_list_apps).

Output Schema

NameRequiredDescriptionDefault
planNoPlan id
stateNoApp state
app_idYesApp ID
invoicesYes
plan_nameNoPlan name
trial_ends_atNoTrial end (epoch s)
invoices_availableNofalse when the signed-in user isn't the app's owner, who alone can see invoices

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is lower, but the description adds real value beyond them: invoices are visible only to the app's owner, and plan changes are impossible via the API. It doesn't mention auth requirements or rate limits, which keeps it short of a 5.

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?

Two tight sentences with the return contents front-loaded and the two caveats (owner-only invoices, dashboard-only plan changes) appended. No wasted wording.

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

Completeness4/5

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

With an output schema present, return values need no explanation, and the description covers the main non-obvious caveats: field availability by role and the absence of a plan-change capability. Only explicit sibling routing and auth expectations are 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?

There is a single parameter with 100% schema description coverage, and the schema already explains that app_id comes from cometchat_list_apps. The description adds no further parameter meaning, so the baseline of 3 applies.

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 names a specific verb and resource ('Returns an app's plan, state, trial end and invoices') and even enumerates the returned fields. It distinguishes itself from read-oriented siblings like get_app_settings or get_usage by focusing on billing/plan data, though it doesn't explicitly name an alternative.

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?

Usage is implied by the read-only framing, and the note that 'Plans can only be changed in the dashboard' usefully tells the agent there is no counterpart mutation tool to look for. However, it never states when to prefer this over get_usage or get_app_settings, leaving routing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.