Skip to main content
Glama

Create API key

create_key

Step 1 of the first job. Free, no sign-in, works without a key: creates an AwesomeVideo API key and returns token once with 5 free starter credits (enough for the 8 s sample, no challenge needed; if today's starters are used up you get 0 and a welcomeChallenge instead). Use the key right away in this same session by adding "api_key": "" to the arguments of every next call (no reconnect), or send Authorization: Bearer from your MCP client config. Step 2 (only if welcomeCredits is 0), free trial while it runs: call create_key again with {api_key, challenge, nonce} (find an integer nonce so SHA-256(challenge + ":" + nonce) starts with bits zero bits, about 1-3 s; python and javascript solvers included) to claim 10 welcomeCredits for that key (no second key; caption_video and transcribe only, jobs up to 2 min, valid 30 days; one per network and per network operator per day, released in slots; welcomeCreditsReason tells why when 0, slot_wait has nextSlotAt). Step 3: the result's firstJob is the next call, caption_video {sourceUrl: "https://awesomevideoeditor.com/samples/cc0-interview-es.mp4"}: the 8 s sample costs 2 credits. Without credits, paid tools return 402 with a checkoutUrl ($5 = 500 credits, 1 credit = 1 cent).

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

Input Schema

NameRequiredDescriptionDefault
nameNoOptional label, e.g. the agent's name.
nonceNoSolution: SHA-256(challenge + ":" + nonce) starts with welcomeChallenge.bits zero bits.
api_keyNoOnly for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared.
challengeNowelcomeChallenge.challenge from a previous create_key (or GET /v1/keys/challenge).

Output Schema

NameRequiredDescriptionDefault
keyNoKey record: id, name, tokenPrefix.
nextNoSuggested next calls (e.g. create_checkout (without product)).
tokenNoThe API key (av_live_...). Shown once: store it and send it as Authorization: Bearer <token>.
messageNoWhat to do next.
balanceCentsNoStarting balance in credits (0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Only for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / challenge
      Added value: +{
      +  "description": "welcomeChallenge.challenge from a previous create_key (or GET /v1/keys/challenge).",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / nonce
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 16,
      +      "type": "string"
      +    },
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  ],
      +  "description": "Solution: SHA-256(challenge + \":\" + nonce) starts with welcomeChallenge.bits zero bits."
      +}
  3. Changed1 schema field changed
    • changedOutput schema / properties / next / description
      Previous value: -"Suggested next calls (e.g. buy_credits)."New value: +"Suggested next calls (e.g. create_checkout (without product))."
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "description": "The new key.",
      +  "properties": {
      +    "balanceCents": {
      +      "description": "Starting balance in credits (0).",
      +      "type": "number"
      +    },
      +    "key": {
      +      "description": "Key record: id, name, tokenPrefix."
      +    },
      +    "message": {
      +      "description": "What to do next.",
      +      "type": "string"
      +    },
      +    "next": {
      +      "description": "Suggested next calls (e.g. buy_credits)."
      +    },
      +    "token": {
      +      "description": "The API key (av_live_...). Shown once: store it and send it as Authorization: Bearer <token>.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations: token is shown once, credits are 0 when daily starters are exhausted, welcome credits are limited to two tools and 2-minute jobs and expire in 30 days, rate limits are one per network per operator per day with slot waiting, and insufficient credits yield a 402 with checkoutUrl. That is exactly the operational context an agent needs before calling.

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

Conciseness3/5

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

The step framing (Step 1/2/3) gives useful structure, but the opening 'Step 1 of the first job' delays the actual purpose and the paragraph is dense with duplicated 'free, no sign-in' claims plus onboarding and pricing detail that a single 4-parameter call does not strictly need.

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 tool that mints credentials and gates billing, the definition covers timing, retry path, credit economics, failure modes, and the exact next call. Output schema exists, yet the description still names the salient fields (welcomeChallenge, welcomeCreditsReason, slot_wait.nextSlotAt, firstJob) so an agent can act on the response.

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?

Schema coverage is 100%, so the baseline is 3; the description still adds value by explaining that nonce is a SHA-256 proof-of-work taking 1-3 s with solvers provided, and that api_key makes subsequent calls in the same session use the new key without reconnecting. It does not clarify the optional 'name' parameter beyond the schema.

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?

Sentence one states a concrete verb and resource: 'creates an AwesomeVideo API key and returns token once with 5 free starter credits.' It also distinguishes the initial call from the follow-up call and from the paid tools that return 402, so an agent can identify this tool without opening the schema.

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?

Explicit sequencing: call now for a starter key, call again with {api_key, challenge, nonce} only 'if welcomeCredits is 0', and only when needing caption_video/transcribe. It also names when the challenge is NOT needed ('no challenge needed' when starters are available) and routes to create_checkout implicitly via the 402 checkoutUrl.

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.

Resources