Skip to main content
Glama
spacetimedb-mcp

spacetimedb-mcp

get_database_identity

Retrieves the identity tied to a specified SpacetimeDB database name, so you can confirm which instance owns a database before running queries or calling reducers.

Instructions

Get the identity for a database name.

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": {
      "database": "<database>"
    },
    "name": "get_database_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseYesThe database name. Required if no default is set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden. It does not state that this is a read-only lookup, whether it fails for unknown databases, whether it requires auth, or what the 'identity' payload contains — the one behaviorally important fact an agent needs.

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 redundancy or filler. It is efficient, though its brevity leaves the central ambiguity unresolved rather than resolving it.

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

Completeness2/5

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

The tool is simple (one required parameter, no output schema), but precisely because there is no output schema the description must explain what an 'identity' is. It omits that entirely, so an agent cannot predict the response shape or decide between this and describe_database.

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 the single parameter is documented in the schema, including the "Required if no default is set" nuance. The description adds nothing beyond restating that the argument is a database name, so baseline 3 applies.

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

Purpose3/5

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

It has a specific verb ("Get") and resource ("database"), but "identity" is undefined — it could mean the database ID, host/connection string, owner, or region. Nothing distinguishes it from nearby siblings like get_database_aliases or describe_database, so an agent cannot confidently tell what it returns.

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?

There is no when-to-use guidance, no mention of when to prefer get_database_aliases, describe_database, or list_databases, and no prerequisites. The only usable cue is the parameter name.

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