Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LEMON_CAKE_BUYER_JWTNoBuyer JWT for production use, issues tokens on each call.
LEMON_CAKE_PAY_TOKENNoPay Token JWT for quickstart or pre-issued token.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
setupA

Show the LemonCake MCP first-run setup guide. No authentication required. Call this tool FIRST to learn what credentials are missing and how to obtain them.

Returns the current credential status (Pay Token / Buyer JWT) and step-by-step instructions to obtain anything that is missing, including a sample MCP client config snippet ready to paste.

Returns: { version, apiUrl, credentials, availableTools, setupSteps, register, dashboard, docs } Errors: none — this tool always succeeds.

list_servicesA

List approved API services available on the LemonCake marketplace. No authentication required.

Use this BEFORE call_service to discover serviceId values and per-call USDC pricing.

Each item: { id, name, provider, type ('API' | 'MCP'), pricePerCall, endpoint }. Errors: HTTP-level errors are returned as Error: API <status>: <body>.

call_serviceA

Invoke an upstream API service through LemonCake's pay-per-call proxy. Each successful call automatically charges USDC against your configured Pay Token.

PRECONDITIONS: • LEMON_CAKE_PAY_TOKEN env var must be set. If missing, the tool returns a structured CREDENTIAL_MISSING error (not a thrown exception) with how-to-fix steps. • serviceId must come from list_services.

BEHAVIOR: • Returns the upstream response body verbatim (JSON or text), plus the X-Charge-Id and X-Amount-Usdc headers reported by the proxy. • HTTP 402 Payment Required is returned as a normal result (NOT thrown) so the agent can autonomously stop spending when the Pay Token's limitUsdc is exhausted. • Pass the same idempotencyKey to retry safely without double-charging. • This tool spends real money and contacts an external service — it is non-idempotent by default and has external side effects.

Returns: { status, chargeId, amountUsdc, response }

check_balanceA

Check the current USDC balance, KYC tier, and account info of the configured buyer.

PRECONDITIONS: • LEMON_CAKE_BUYER_JWT env var must be set. If missing, returns a structured CREDENTIAL_MISSING error with how-to-fix steps (no exception thrown).

Use BEFORE call_service to confirm sufficient funds, especially before a long batch.

Returns: { balanceUsdc, kycTier, email, name }

check_taxA

Run a Japanese tax compliance check on a single transaction. No authentication required.

Performs three checks in one call:

  1. Validates the qualified-invoice registration number (T-number) against the NTA registry.

  2. Determines whether source-withholding (源泉徴収) applies based on the service description.

  3. If withholding applies, computes the withholding amount and net payable.

Intended for Japanese corporations that pay AI / API services and need to file withholding correctly under the qualified-invoice (インボイス制度) regime.

Returns: { invoice: { valid, name, ... }, withholding: { required, rate, amount, net } } Errors: invalid registrationNumber returns invoice.valid = false (not an exception).

get_service_statsA

Return public usage statistics for every approved service on the marketplace. No authentication required.

Use this AFTER list_services and BEFORE call_service to pick a service based on real-world traction (call counts, USDC revenue, last-used timestamp).

Returns: an array of { serviceId, callCount, totalRevenueUsdc, lastCalledAt }.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/evidai/lemon-cake'

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