Skip to main content
Glama

Account, plan and limits

pinin_get_account
Read-only

Read the account tied to an API key to check plan, credit balance, batch cap, concurrency, rate and monthly limits, and active keys before large batches or after balance failures.

Instructions

Read the account behind the key: plan tier and status, credit balance, batch cap, concurrency, the key's requests per minute, the monthly cap and spend so far, and how many keys are active. Read it before queueing a large batch to size the request, and after a plan or balance failure — it stays readable on an empty balance, so a blocked account can see why. Read-only and free. For per-day history use pinin_get_usage.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
planNo`{ tier, status, credits, renews_at }` — `status` is `active` for a usable account.
emailNoAccount email.
limitsNo`{ batch_cap, concurrency, requests_per_minute, monthly_credit_cap, monthly_credit_spend }` — size batches to `batch_cap` and stay under `concurrency`.
objectNoAlways `account`.
keys_activeNoActive API keys on the account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, so the safety profile is covered; the description still adds real value by disclosing that the endpoint is free and remains readable on an empty balance, which is exactly the failure-mode behavior an agent needs. It stops short of describing response shape or any rate limiting on this call itself, which keeps it off 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.

Conciseness4/5

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

Well front-loaded: capability first, then the two usage triggers, then the failure-mode caveat, then the sibling routing. The only waste is 'Read-only and free', which partly restates the readOnlyHint annotation, though the cost disclosure is not in structured data.

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?

An output schema exists so return values need not be documented, yet the description still previews the key fields, and it covers the two situations where an agent would reach for this tool. Nothing needed to call a zero-argument read correctly is missing.

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

Parameters4/5

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

Zero parameters and a fully closed schema, so there is no parameter meaning to add; the description correctly spends its space on returned fields instead. Baseline for a no-arg tool 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?

Names a specific verb and resource ('Read the account behind the key') and then enumerates the exact fields returned: plan tier/status, credit balance, batch cap, concurrency, RPM, monthly cap, spend, active key count. The closing pointer to pinin_get_usage makes the boundary between the two read tools explicit.

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 two concrete trigger conditions — before queueing a large batch to size the request, and after a plan or balance failure — plus the alternative for per-day history. It also states a when-not-implicit caveat by noting the call works even on an empty balance, so an agent has no reason to skip it during error recovery.

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