Skip to main content
Glama

Call a Nakama server RPC

nakama_call_rpc

Invoke a registered runtime RPC function by ID over the client API, with optional payload and HTTP key for unauthenticated access.

Instructions

Invoke a registered runtime RPC function by id over the client API. Pass payload as a JSON object or string; it is encoded as the gateway expects. Provide http_key to call an RPC without a player session; otherwise authenticate first with nakama_authenticate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesRegistered RPC function id.
payloadNoRPC payload (object or string).
http_keyNoServer HTTP key for unauthenticated RPC calls.
Behavior2/5

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

The description mentions encoding behavior but does not disclose potential side effects, error states, or the nature of mutations. Annotations indicate a non-read-only operation, but the description adds little behavioral context beyond the invocation mechanism.

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?

Two sentences with front-loaded purpose and efficient usage conditions. No superfluous words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a general RPC invocation tool, but lacks details on return values, error handling, or prerequisites beyond authentication. The absence of an output schema increases the need for completeness, which is partially met.

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?

While schema coverage is 100%, the description adds value by explaining that the payload is encoded as the gateway expects and clarifies the role of http_key for unauthenticated calls.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool invokes a registered runtime RPC function by id. It distinguishes itself from authentication and other tools implicitly, but does not explicitly differentiate from sibling 'nakama_execute_action'.

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?

Provides explicit guidance on when to use http_key (for unauthenticated calls) and to authenticate first with nakama_authenticate otherwise. However, it does not discuss when to avoid this tool in favor of alternatives.

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/mlger/nakama-mcp'

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