Skip to main content
Glama
rybbit-mcp

rybbit-mcp

by nks-hub

User Traits

rybbit_get_user_traits
Read-onlyIdempotent

Lists user trait keys, returns distinct values for a trait key, or finds users matching a specific trait key-value pair in Rybbit Analytics.

Instructions

Get user trait keys, values, or find users by trait. mode='keys' lists all trait keys. mode='values' (default when key is provided) returns distinct values for a trait key. mode='users' finds users matching a specific trait key+value pair (case-insensitive).

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": {
      "siteId": "<siteId>"
    },
    "name": "rybbit_get_user_traits"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoTrait key (required for 'values' and 'users' modes)
modeNo'keys' to list trait keys, 'values' to get values for a key, 'users' to find users by trait. Default: 'keys' if no key provided, 'values' if key is provided.
limitNoMax values or users to return; `total` says how many match
valueNoTrait value (required for 'users' mode)
siteIdYesSite ID (numeric ID or domain identifier)

Output Schema

NameRequiredDescriptionDefault
keysNo
noteNoCaveat about this response, e.g. how many rows were returned and how to get the rest
totalNoValues or users matching, across all pages
usersNomode=users: users having the trait value
valuesNomode=values: distinct values of the trait
hasMoreNo
truncatedNoTrue when rows were dropped to keep the response under the size cap

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.9.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / keys / items / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "count": {
      -        "type": "number"
      -      },
      -      "key": {
      -        "type": "string"
      -      },
      -      "userCount": {
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "count": {
      +        "type": "number"
      +      },
      +      "key": {
      +        "type": "string"
      +      },
      +      "userCount": {
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / properties / users / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / values / items / additionalProperties
      Previous value: -trueNew value: +{}
  2. Changed15 schema fields changedv0.9.0
    • addedInput schema / properties / limit / default
      Added value: +25
    • changedInput schema / properties / limit / description
      Previous value: -"Max results to return"New value: +"Max values or users to return; `total` says how many match"
    • addedInput schema / properties / limit / maximum
      Added value: +200
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • removedOutput schema / properties / data
      Removed value: -{}
    • addedOutput schema / properties / hasMore
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "Caveat about this response, e.g. how many rows were returned and how to get the rest",
      +  "type": "string"
      +}
    • addedOutput schema / properties / total
      Added value: +{
      +  "description": "Values or users matching, across all pages",
      +  "type": "number"
      +}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "description": "True when rows were dropped to keep the response under the size cap",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / users
      Added value: +{
      +  "description": "mode=users: users having the trait value",
      +  "items": {
      +    "additionalProperties": {},
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / values / description
      Added value: +"mode=values: distinct values of the trait"
    • changedOutput schema / properties / values / items / additionalProperties
      Previous value: -{}New value: +true
    • addedOutput schema / properties / values / items / properties
      Added value: +{
      +  "userCount": {
      +    "type": [
      +      "number",
      +      "null"
      +    ]
      +  },
      +  "value": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
  3. Changed1 schema field changedv0.8.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {},
      +    "keys": {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "count": {
      +                "type": "number"
      +              },
      +              "key": {
      +                "type": "string"
      +              },
      +              "userCount": {
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "values": {
      +      "items": {
      +        "additionalProperties": {},
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observedv0.5.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description's only genuine addition is that trait matching in 'users' mode is case-insensitive; the default-mode logic it repeats is already present in the schema. No mention of result size, truncation, or how `total` behaves relative to `limit`.

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?

Four short sentences, front-loaded with the overall capability before the mode breakdown, with no filler. Minor redundancy with the schema's own mode description, but nothing that wastes the agent's attention.

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?

Given an output schema, full annotation coverage and complete parameter descriptions, the description only needs to convey the mode model, which it does. An agent can invoke this correctly; the remaining gap is that nothing ties the tool to the wider user-analytics siblings.

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 key, value, mode, limit and siteId are already documented, including which modes require key/value. The description restates those requirements and adds the case-insensitivity qualifier for value matching, but adds no syntax or format detail beyond the schema. 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?

The description names a specific verb and resource ('Get user trait keys, values, or find users by trait') and then separates the three modes explicitly, so an agent can tell this apart from rybbit_get_user or rybbit_get_event_properties. It stops short of naming a sibling it should not be used for, which keeps it out of the top band.

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?

Mode selection is spelled out with defaults ('values' is default when key is provided), so an agent knows how to invoke each variant. There is no guidance about when to prefer this over a sibling such as rybbit_get_user or a property-listing tool, so it is clear context without exclusions.

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