Skip to main content
Glama
RawTree MCP Server

RawTree MCP Server

Official
by rawtreedb

List API Keys

list-api-keys

Retrieve API key names, IDs, permissions, default database, creation dates, and expiration details for a RawTree cluster to audit access or identify a key before revocation.

Instructions

Purpose: List API keys for a RawTree cluster.

NOT for: Creating or revoking credentials. Use create-api-key or delete-api-key for those workflows.

Returns: API key names, IDs, API key hints, permissions or database roles, default database, creation dates, and expires_at (UTC timestamp or null for never).

Auth: Uses GET /v1/api-keys and requires an admin database API key.

When to use:

  • User asks what API keys exist

  • You need the key ID before revoking a key

  • You need to audit permissions for a database

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list-api-keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterNoName or ID of the cluster to use for this operation.
organizationNoName or ID of the organization containing the target cluster.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.10
    • changedInput schema / properties / cluster / description
      Previous value: -"RawTree cluster to use for this operation."New value: +"Name or ID of the cluster to use for this operation."
    • changedInput schema / properties / organization / description
      Previous value: -"RawTree organization containing the target cluster."New value: +"Name or ID of the organization containing the target cluster."
  2. Changed3 schema fields changedv0.3.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / cluster
      Added value: +{
      +  "description": "RawTree cluster to use for this operation.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / organization
      Added value: +{
      +  "description": "RawTree organization containing the target cluster.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the underlying endpoint (GET /v1/api-keys), the admin-database-API-key auth requirement, and the full set of returned fields including the expires_at null-for-never convention. It stops short of stating whether results are paginated or ordered, which matters for a list operation that could return many keys.

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?

Front-loaded with Purpose followed by exclusion, returns, auth, and usage, so a scanning agent hits the most decision-relevant content first. The bold-labeled section format is longer than strictly necessary, but each block carries information the agent needs, so nothing is truly wasted.

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

Completeness4/5

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

Because there is no output schema, describing return fields is genuinely additive, and auth plus endpoint disclosure covers the main operational unknowns. The remaining gap is list-scale behavior: no mention of pagination, limits, or result ordering for what could be a multi-key response.

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 description coverage is 100%, so both cluster and organization are already documented in the input schema and the baseline of 3 applies. The description's phrase "for a RawTree cluster" loosely ties to the cluster parameter but adds no meaning about organization selection or what happens when both are omitted (0 required parameters).

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?

States a specific verb and resource with scope: "List API keys for a RawTree cluster." It also explicitly disclaims the create/revoke workflows and names the siblings that handle them, so the agent can distinguish this from create-api-key and delete-api-key without inspecting either schema.

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?

Provides both an explicit "NOT for" exclusion with named alternatives and three concrete "When to use" triggers (existence check, obtaining a key ID before revoking, permission auditing). The when/when-not/alternative triangle is fully covered.

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