Skip to main content
Glama

Account Billing Lifecycle, Multi-Rail Session Credit & Quota Inspector

infer_mpp_streaming_session
Read-onlyIdempotent

Inspects account billing lifecycle, prepaid multi-rail credit (GRLC, Lightning sats, Base USDC, Solana), session key validity, and allocates streaming token quotas. Use when verifying prepaid balance, inspecting top-up deposit addresses, or initializing metered MPP inference sessions; for mapping a high-level task to MCP tools, use route_mcp_workflow_plan instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'action' ('lifecycle_stage' defaults to 'active_session'), supports '?demo=true' or MPP (100 sats), and returns HTTP 400.

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": "infer_mpp_streaming_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoAgent workflow task to execute within the metered MPP session.
actionNoOperation: 'check_billing_lifecycle' to inspect balance/deposit addresses, or 'allocate_session' to plan metered streaming quota.
token_quota_tierNoAllocated streaming token ceiling for the session; defaults to 'standard_4096' when omitted.

Output Schema

NameRequiredDescriptionDefault
planNoOrdered execution steps generated for the task.
balancesNoPrepaid balance breakdown across GRLC, Lightning sats, Base USDC, and Solana.
session_idYesUnique MPP streaming session identifier.
account_statusYesAccount status: active, funded, or unauthenticated.
deposit_addressesNoMulti-rail payment addresses for topping up account balance.
streaming_tokens_allocatedYesToken budget reserved for the session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / action
      Added value: +{
      +  "description": "Operation: 'check_billing_lifecycle' to inspect balance/deposit addresses, or 'allocate_session' to plan metered streaming quota.",
      +  "enum": [
      +    "check_billing_lifecycle",
      +    "allocate_session"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "task"
      -]
    • addedOutput schema / properties / account_status
      Added value: +{
      +  "description": "Account status: active, funded, or unauthenticated.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / balances
      Added value: +{
      +  "description": "Prepaid balance breakdown across GRLC, Lightning sats, Base USDC, and Solana.",
      +  "type": "object"
      +}
    • addedOutput schema / properties / deposit_addresses
      Added value: +{
      +  "description": "Multi-rail payment addresses for topping up account balance.",
      +  "type": "object"
      +}
    • removedOutput schema / properties / session_status
      Removed value: -{
      -  "description": "Session lifecycle state ('ACTIVE_STREAMING').",
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "session_id",
      -  "streaming_tokens_allocated",
      -  "plan",
      -  "session_status"
      -]New value: +[
      +  "session_id",
      +  "streaming_tokens_allocated",
      +  "account_status"
      +]
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already carry the safety profile (readOnlyHint, idempotentHint, openWorldHint false), and the description adds genuinely non-redundant operational facts: stateless, 32 KB max payload, 60 RPM, '?demo=true' bypass, and a 100 sats MPP charge. The phrase 'allocates streaming token quotas' sits in mild tension with readOnlyHint, but the description resolves it by explicitly calling itself a 'read-only edge call'. The HTTP 400 note is unexplained (no condition given), which is the main gap.

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

Conciseness4/5

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

The structure is front-loaded and logical: capability, then when-to-use and the sibling alternative, then operational constraints. Sentences are dense but each carries information. It is slightly overpacked for a three-parameter tool, and the trailing HTTP status note adds noise without a triggering condition.

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

Completeness3/5

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

An output schema exists, so return-value explanation is not required, and the operational constraints are well covered. However, the description introduces a default and an action value that do not exist in the schema, leaving an agent uncertain about which action strings are actually valid. It also never explains the free-text 'task' parameter or how it interacts with quota allocation.

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

Parameters2/5

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

Schema coverage is 100%, which would normally set a baseline of 3, but the description actively misstates the schema: it claims 'action' accepts 'lifecycle_stage' and defaults to 'active_session', while the enum only permits 'check_billing_lifecycle' and 'allocate_session' and declares no default. That is misleading guidance rather than added meaning. The token_quota_tier default and the 'task' parameter receive no coverage in the description at all.

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 ('inspects') and enumerates concrete resources: billing lifecycle, prepaid multi-rail credit across named rails (GRLC, Lightning sats, Base USDC, Solana), session key validity, and token quota allocation. It also names a sibling it is not (route_mcp_workflow_plan), so an agent can separate it from the routing tool. The scope is broad and multi-headed rather than one crisp capability, which keeps it short of a 5.

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

Usage Guidelines4/5

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

It explicitly lists trigger conditions: verifying prepaid balance, inspecting top-up deposit addresses, and initializing metered MPP inference sessions. It also redirects the workflow-mapping case to route_mcp_workflow_plan, giving one clear alternative. It does not say when to prefer the check_billing_lifecycle action over allocate_session, so the internal action routing is left implicit.

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.