Skip to main content
Glama
Floe-Labs

Floe Payments and Credit

Official
by Floe-Labs

create_agent_key

Generate an agent API key (floe_...) to enable AI agent payments and credit. Optionally cap spending with a rolling budget; store the one-time secret securely.

Instructions

Mint a new agent API key (floe_...) for an agent — the credential its runtime tools and x402_pay use. The plaintext key is returned ONCE; store it securely and never echo it into chat. Optionally cap the key with a rolling spend budget (fail-closed). Requires a developer key (floe_live_...).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoHuman-readable label for the key.
agent_idYesNumeric agent id.
budget_rawNoOptional per-key spend budget in raw USDC (6 decimals), positive.
window_secondsNoRolling budget window in seconds. Omit for the server default.
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It explicitly warns that the plaintext key is returned only once, instructs to store it securely and not echo into chat, and explains the budget option is fail-closed. These are critical security traits not discoverable from the schema.

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

Conciseness5/5

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

The description is three sentences, front-loaded with the core action, and contains only high-value information. No fluff or repetition; every sentence earns its place.

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 sensitivity (creating a credential), the description covers essential aspects: the key prefix, one-time retrieval, security handling, optional budget, and developer-key requirement. No output schema exists, but the description mentions the main output (the plaintext key) and its security implications, making it sufficiently complete for correct invocation.

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 has 100% parameter coverage with descriptions for all four fields. The description adds value by explaining that the budget is a 'rolling spend budget (fail-closed)', which clarifies the operational consequence of combining budget_raw and window_seconds beyond what the schema states.

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 the tool 'Mint a new agent API key (floe_...)' for an agent, identifying the resource and action. It also differentiates from siblings like rotate_agent_key and revoke_agent_key by focusing on creating a new credential for runtime tools and x402_pay.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context: this is for creating a new key and requires a developer key (floe_live_...). It does not explicitly mention alternatives or when-not-to-use, but the purpose is unambiguous enough that an agent can infer when to choose it over sibling key-management tools.

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/Floe-Labs/floe-mcp-server'

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