Skip to main content
Glama
bridgenode-ai

@bridgenode/mcp

Official

Chat completions with x402 payment

chat_completions

Generate text by sending a chat completion request to any supported model. Pay per use with Solana USDC via x402, choosing auto, eco, or premium routing or a specific model.

Instructions

Send a chat completion request to any supported model. Paid tool: x402 payment (Solana USDC) is required — the first call returns 402 with the exact price; retry with _meta["x402/payment"]. Responses are non-streaming. Provide either mode (auto/eco/premium routing) or model (explicit id, mutually exclusive with mode); one of the two is required — if both are sent, model wins. mode values: auto = cheapest model fitting the context, eco = cheapest available, premium = best model. max_tokens defaults to 4096 and is clamped to the model's max output. Use this tool to generate text; to inspect models and prices first, use the free list_models tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoSmart routing profile (auto/eco/premium).
modelNoExplicit model id (see list_models / /v1/models). Mutually exclusive with mode.
messagesYesChat messages (text content only).
max_tokensNoMax output tokens (billed upfront, §4.2). MCP calls are non-stream: cap per config.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
modelNo
usageNo
objectNo
choicesNo
createdNo
Behavior5/5

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

Annotations are all false and carry no safety signals, so the description does the heavy lifting. It clearly discloses the required payment flow (x402, first call returns 402, retry with _meta['x402/payment']), non-streaming responses, and max_tokens clamp/default behavior.

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 information-dense but each sentence earns its place. Payment requirement and routing rules are front-loaded before the 'Use this tool…' usage note. No filler or repetition.

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 paid mutation-style tool with no safety annotations, the description covers all prerequisites, parameter selection, defaults, and which sibling to use instead. Combined with an output schema existing, nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though schema coverage is 100%, the description adds meaningful semantics: explains auto/eco/premium routing, mutual exclusivity with model, model wins if both, and max_tokens default/clamp. This goes beyond the schema's basic type/enum 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?

Opens with a specific verb and resource: 'Send a chat completion request to any supported model.' It also frames it as the text-generation tool, opposite to the free inspection tool list_models, so the agent can immediately distinguish it from its siblings.

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?

Explicitly says to use this for text generation and to use free list_models first to inspect models and prices. It also explains the mode-vs-model selection, which is essential for correct invocation.

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/bridgenode-ai/bridgenode-mcp'

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