Skip to main content
Glama

Get a free API key (proof of work, no human approval)

get_api_key

Create a free Screwtape.ai API key (10 calls per UTC day) with no human approval and no code: call it with an empty object {} or just a name. Call it only when no Screwtape key is configured. Do NOT call it when a key already exists, or to get more quota. Keys without a proof of work are limited to 2 per network and 300 per service per UTC day; add pow_nonce (optional; SHA-256 of the UTF-8 string screwtape-signup-v1:: must start with 12 zero bits, which is 3 hex zeros; nonce matches ^[A-Za-z0-9_-]{8,64}$) only if you can run code and hit that limit. Other inputs: email (optional), name (optional, at most 80 characters). Returns: api_key (shown once; store it securely and send it as Authorization: Bearer), key metadata and request_id. Only the key's SHA-256 hash is stored. You do not need a key to start: the first 3 calls per UTC day work with no key and no payment. Cost: free.

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

Input Schema

NameRequiredDescriptionDefault
nameNoOptional agent or client name, at most 80 characters.
emailNoOptional. Omit it to store no email.
pow_nonceNoOptional. Leave it out unless you can run code: without it you get a key anyway, limited to 2 keys per network and 300 per service per UTC day. With it (SHA-256 of the UTF-8 string screwtape-signup-v1:YYYY-MM-DD:<nonce> has 12 leading zero bits; nonce matches ^[A-Za-z0-9_-]{8,64}$; YYYY-MM-DD is the UTC day) the normal limits apply.
data_sharingNoOptional, off by default. Only true turns on opt-in data sharing for the new key: redacted samples of its calls are kept 90 days. Turn it off anytime with PATCH /v1/keys/me/data-sharing. See https://screwtape.ai/privacy/#opt-in-data-sharing.

Output Schema

NameRequiredDescriptionDefault
keyYes
api_keyYes
request_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / pow_nonce / description
      Previous value: -"Required. SHA-256 of the UTF-8 string screwtape-signup-v1:YYYY-MM-DD:<nonce> must have 12 leading zero bits. Nonce matches ^[A-Za-z0-9_-]{8,64}$. YYYY-MM-DD is the UTC day."New value: +"Optional. Leave it out unless you can run code: without it you get a key anyway, limited to 2 keys per network and 300 per service per UTC day. With it (SHA-256 of the UTF-8 string screwtape-signup-v1:YYYY-MM-DD:<nonce> has 12 leading zero bits; nonce matches ^[A-Za-z0-9_-]{8,64}$; YYYY-MM-DD is the UTC day) the normal limits apply."
    • changedInput schema / required
      Previous value: -[
      -  "pow_nonce"
      -]New value: +[]
  2. Changed1 schema field changed
    • addedInput schema / properties / data_sharing
      Added value: +{
      +  "description": "Optional, off by default. Only true turns on opt-in data sharing for the new key: redacted samples of its calls are kept 90 days. Turn it off anytime with PATCH /v1/keys/me/data-sharing. See https://screwtape.ai/privacy/#opt-in-data-sharing.",
      +  "type": "boolean"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Optional agent or client name."New value: +"Optional agent or client name, at most 80 characters."
    • addedInput schema / properties / name / maxLength
      Added value: +80
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "api_key": {
      +      "type": "string"
      +    },
      +    "key": {
      +      "type": "object"
      +    },
      +    "request_id": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "api_key",
      +    "key",
      +    "request_id"
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses no human approval, no code requirement, daily quota limits, proof-of-work thresholds, one-time key display, secure storage requirements, Authorization header format, and that only the key hash is stored. These details materially help an agent understand the operation's side effects and constraints.

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 key purpose and usage constraints are front-loaded, and the description is organized around when to call, how to call, proof-of-work limits, and returns. It is somewhat dense and repeats some schema-level field details, especially around pow_nonce, but the length is largely justified by the tool's setup complexity.

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?

The definition covers the important operational context for a key-creation tool: when to call it, quota behavior, proof-of-work fallback, key handling, storage, and authentication use. Although an output schema exists, the description's return-value summary is still coherent and complete.

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?

Schema description coverage is 100%, so the input schema already documents name, email, pow_nonce, and data_sharing. The description mostly repeats optional-field guidance, such as the name length limit and the proof-of-work conditions, rather than adding substantial meaning 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?

The description states a specific verb and resource: create a free Screwtape.ai API key. It distinguishes this key-provisioning action from normal use by saying to call it only when no Screwtape key is configured.

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?

It gives explicit when-to-use guidance: call with {} or a name only when no key is configured. It also gives explicit when-not-to-use guidance: do not call when a key already exists or to get more quota.

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