Skip to main content
Glama
spacetimedb-mcp

spacetimedb-mcp

add_database_alias

Assign a friendly alias to a SpacetimeDB database identity, letting you reference the database by a readable name instead of its raw identity.

Instructions

Add a friendly alias to a database identity.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "identity": "<identity>",
      "name": "<name>"
    },
    "name": "add_database_alias"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe alias to add
identityYesThe database identity

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about mutation semantics. It does not state whether adding an alias is idempotent, what happens if the alias already exists or is taken by another identity, whether the alias must be unique, or whether failures surface errors or silently overwrite. For an unannotated write tool this is a real gap.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the terseness is part of why behavioral and usage detail are absent.

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?

The tool is simple (two required string parameters, no nesting, no output schema), so little is needed, and the schema covers both inputs. Still, for an unannotated mutation the description should say at minimum what happens on duplicate or conflicting aliases; that omission leaves it only minimally adequate.

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 coverage is 100% and both parameters carry descriptions ("The alias to add", "The database identity"), so the schema already does the explanatory work. The description adds only the framing that the alias attaches to an identity, without format, length, or naming-constraint details, so baseline 3 applies.

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?

States a specific verb and resource: "Add a friendly alias" scoped to "a database identity." That is enough to distinguish it from get_database_aliases (reads aliases) and delete_database (removes a database), though it never names a sibling explicitly.

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

Usage Guidelines2/5

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

No guidance on when to use this rather than get_database_aliases or other database tools, and no prerequisites such as whether the identity must already exist or whether the caller needs write permission on it. The agent must infer usage entirely from the verb.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.