Skip to main content
Glama
ClockNext

ClockNext MCP Server

Official
by ClockNext

ClockNext: create credit

clocknext_create_credit

Create a token-metered credit type for AI usage billing, with pricing automatically computed from live model costs and a margin percent to prevent mispricing.

Instructions

Create a credit type — a token-metered entitlement your product draws down against its agentKey. Pricing is MODEL-GROUNDED: give models (a mixer of enabled catalog model(s) + avg tokens + input/output/cache split) and a marginPercent; the tool reads live model prices and COMPUTES the base price + price-per-credit — you never hand-type a price, so a credit can't be mispriced or grounded in a disabled model. First-class alternative: create/price it in the dashboard (https://payments.clocknext.com/credits) — its live mixer preview is clearer and records the full per-model bundle; use this tool as the fallback (it stores the computed price only). A plan grants the credit via a CREDIT component referencing its id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesCredit name.
modelsYesThe model mixer that GROUNDS the price — one or more enabled catalog models with avg tokens + input/output/cache split. The tool reads live prices and computes the base cost; you never type a raw price.
agentKeyYesLowercased stable key you report credit usage against (sent as `agentKey` when recording usage). The credit's durable identity.
descriptionNoOptional human-readable description.
marginPercentYesMarkup over the computed base cost, as a percent (e.g. 100 = double the base = pricePerCredit).
tokensPerCreditNoHow many tokens equal one credit (defaults to 0). Governs how usage draws the credit down.
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false), the description discloses important behavioral details: the tool reads live model prices, computes base price and price-per-credit automatically, and stores only the computed price. It does not contradict the annotations, though it omits detailed error or duplicate-handling behavior.

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 description opens with a strong one-sentence purpose and remains readable, but it is somewhat long with multiple asides (dashboard alternative, plan granting). Every sentence adds value, though a tighter version would be even more concise.

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?

Given the tool's complexity, lack of output schema, and annotations that already flag write behavior, the description is remarkably complete. It covers purpose, prerequisites, pricing computation, alternatives, and downstream plan usage, giving an agent everything needed to invoke it correctly.

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?

The schema already covers 100% of parameters with rich descriptions, so the baseline is 3. The description adds extra algorithmic meaning by explaining how models and marginPercent combine for model-grounded pricing and why agentKey is durable, which goes beyond simple field definitions.

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?

The description clearly states it creates a credit type (a token-metered entitlement) with specific verb and resource. It distinguishes itself from sibling tools such as get/update/archive/list credits and create_plan by describing its unique role in the system.

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?

The description explicitly names the dashboard as the first-class alternative and labels this tool as the fallback. It also gives prerequisites like using enabled catalog models from clocknext_list_models and mentions how the credit is granted via a plan, making when-to-use guidance clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ClockNext/clocknext-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server