AWSLABS VALKEY TOOLS

105 tools from the Awslabs Valkey MCP Server, categorised by risk level.

View the Awslabs Valkey policy →

READ TOOLS

58
bitmap_count Count the number of set bits (1) in a range. Args: key: The name of the bitmap key start: Start offset (inclusive, optional) end: End ... bitmap_get Get the bit value at offset. Args: key: The name of the bitmap key offset: The bit offset (0-based) Returns: Bit value or error message client_list Get a list of connected clients to the Valkey server. dbsize Get the number of keys stored in the Valkey database. hash_exists Check if field exists in hash. Args: key: The name of the key field: The field name Returns: Boolean result or error message hash_get Get field from hash. Args: key: The name of the key field: The field name Returns: Field value or error message hash_get_all Get all fields and values from hash. Args: key: The name of the key Returns: Dictionary of field-value pairs or error message hash_increment Increment field value in hash. Args: key: The name of the key field: The field name amount: Amount to increment by (default: 1) Retur... hash_keys Get all field names from hash. Args: key: The name of the key Returns: List of field names or error message hash_length Get number of fields in hash. Args: key: The name of the key Returns: Number of fields or error message hash_random_field Get random field(s) from hash. Args: key: The name of the key count: Number of fields to return (optional) Returns: Random field(s) o... hash_random_field_with_values Get random field(s) with their values from hash. Args: key: The name of the key count: Number of field-value pairs to return Returns: ... hash_strlen Get length of field value in hash. Args: key: The name of the key field: The field name Returns: Length of field value or error message hash_values Get all values from hash. Args: key: The name of the key Returns: List of values or error message hll_count Get the estimated cardinality of a HyperLogLog. Args: key: The name of the HyperLogLog key Returns: Estimated cardinality or error message info Get Valkey server information and statistics. Args: section: The section of the info command (default, memory, cpu, etc.). Returns: A dic... json_arrappend Append values to the array at path. Args: key: The name of the key path: The path in the JSON document *values: One or more values to ... json_arrlen Get the length of array at path. Args: key: The name of the key path: The path in the JSON document Returns: Array length or error me... json_arrpop Pop a value from the array at path and index. Args: key: The name of the key path: The path in the JSON document index: The index to p... json_get Get the JSON value at path. Args: key: The name of the key path: The path in the JSON document (optional, defaults to root) indent: Nu... json_numincrby Increment the number at path by value. Args: key: The name of the key path: The path in the JSON document value: The increment value (... json_nummultby Multiply the number at path by value. Args: key: The name of the key path: The path in the JSON document value: The multiplier value (... json_objkeys Get the keys in the object at path. Args: key: The name of the key path: The path in the JSON document Returns: List of keys or error... json_objlen Get the number of keys in the object at path. Args: key: The name of the key path: The path in the JSON document Returns: Number of k... json_strappend Append a string to the string at path. Args: key: The name of the key path: The path in the JSON document value: The string to append ... json_strlen Get the length of string at path. Args: key: The name of the key path: The path in the JSON document Returns: String length or error ... json_toggle Toggle boolean value at path. Args: key: The name of the key path: The path in the JSON document Returns: New boolean value or error ... list_append Append value to list. Args: key: The name of the key value: The value to append Returns: Success message or error message list_append_multiple Append multiple values to list. Args: key: The name of the key values: List of values to append Returns: Success message or error mes... list_get Get value at index from list. Args: key: The name of the key index: The index (0-based, negative indices supported) Returns: Value or... list_insert_after Insert value after pivot in list. Args: key: The name of the key pivot: The pivot value value: The value to insert Returns: Succe... list_insert_before Insert value before pivot in list. Args: key: The name of the key pivot: The pivot value value: The value to insert Returns: Succ... list_length Get length of list. Args: key: The name of the key Returns: Length or error message list_move Move element from one list to another. Args: source: Source list key destination: Destination list key wherefrom: Where to pop from ("... list_pop_left Pop value(s) from left of list. Args: key: The name of the key count: Number of values to pop (optional) Returns: Value(s) or error m... list_pop_right Pop value(s) from right of list. Args: key: The name of the key count: Number of values to pop (optional) Returns: Value(s) or error ... list_position Find position(s) of value in list. Args: key: The name of the key value: Value to search for rank: Match the Nth occurrence (optional)... list_prepend Prepend value to list. Args: key: The name of the key value: The value to prepend Returns: Success message or error message list_prepend_multiple Prepend multiple values to list. Args: key: The name of the key values: List of values to prepend Returns: Success message or error m... list_range Get range of values from list. Args: key: The name of the key start: Start index (inclusive, default 0) stop: Stop index (inclusive, d... list_remove Remove occurrences of value from list. Args: key: The name of the key value: Value to remove count: Number of occurrences to remove (0... list_set Set value at index in list. Args: key: The name of the key index: The index (0-based, negative indices supported) value: The value to ... list_trim Trim list to specified range. Args: key: The name of the key start: Start index (inclusive) stop: Stop index (inclusive) Returns: ... stream_info Get information about stream. Args: key: The name of the key Returns: Stream information or error message stream_info_consumers Get information about consumers in group. Args: key: The name of the key group_name: Name of consumer group Returns: Consumers inform... stream_info_groups Get information about consumer groups. Args: key: The name of the key Returns: Consumer groups information or error message stream_length Get length of stream. Args: key: The name of the key Returns: Length or error message stream_read Read entries from stream. Args: key: The name of the key count: Maximum number of entries to return block: Milliseconds to block (opti... stream_read_group Read entries from stream as part of consumer group. Args: key: The name of the key group_name: Name of consumer group consumer_name: N... stream_trim Trim stream to specified length. Args: key: The name of the key maxlen: Maximum length to trim to approximate: Whether maxlen is appro... string_append Append to string value. Args: key: The name of the key value: String to append Returns: Success message or error message string_decrement Decrement integer value. Args: key: The name of the key amount: Amount to decrement by (default 1) Returns: New value or error message string_get Get string value. Args: key: The name of the key Returns: Value or error message string_get_range Get substring. Args: key: The name of the key start: Start index (inclusive) end: End index (inclusive) Returns: Substring or err... string_get_set Set new value and return old value. Args: key: The name of the key value: New value to set Returns: Old value or error message string_increment Increment integer value. Args: key: The name of the key amount: Amount to increment by (default 1) Returns: New value or error message string_increment_float Increment float value. Args: key: The name of the key amount: Amount to increment by Returns: New value or error message string_length Get string length. Args: key: The name of the key Returns: Length or error message

WRITE TOOLS

37
bitmap_set Set the bit at offset to value. Args: key: The name of the bitmap key offset: The bit offset (0-based) value: The bit value (0 or 1) ... expire Set an expiration time for a Redis key. Args: name: The Redis key. expire_seconds: Time in seconds after which the key should expire. Ret... hash_set Set field in hash. Args: key: The name of the key field: The field name value: The value to set Returns: Success message or error... hash_set_if_not_exists Set field in hash only if it does not exist. Args: key: The name of the key field: The field name value: The value to set Returns: ... hash_set_multiple Set multiple fields in hash. Args: key: The name of the key mapping: Dictionary of field-value pairs Returns: Success message or erro... hll_add Add one element to a HyperLogLog. Args: key: The name of the HyperLogLog key element: One element to add Returns: Success message or ... json_set Set the JSON value at path. Args: key: The name of the key path: The path in the JSON document (e.g., "$.name" or "." for root) value:... json_type Get the type of JSON value at path. Args: key: The name of the key path: The path in the JSON document (optional, defaults to root) Retur... rename Renames a Redis key from old_key to new_key. Args: old_key (str): The current name of the Redis key to rename. new_key (str): The new name... set_add Add member to set. Args: key: The name of the key member: Member to add Returns: Success message or error message set_cardinality Get number of members in set. Args: key: The name of the key Returns: Number of members or error message set_contains Check if member exists in set. Args: key: The name of the key member: Member to check Returns: Boolean result or error message set_members Get all members in set. Args: key: The name of the key Returns: List of members or error message set_move Move member from one set to another. Args: source: Source set key destination: Destination set key member: Member to move Returns: ... set_pop Remove and return random member(s) from set. Args: key: The name of the key count: Number of members to pop (optional) Returns: Poppe... set_random_member Get random member(s) from set without removing. Args: key: The name of the key count: Number of members to return (optional) Returns: ... set_remove Remove member from set. Args: key: The name of the key member: Member to remove Returns: Success message or error message sorted_set_add Add member-score pairs to sorted set. Args: key: The name of the key mapping: Dictionary of member-score pairs Returns: Success messa... sorted_set_add_incr Add member to sorted set or increment its score. Args: key: The name of the key member: The member to add/update score: Score to add t... sorted_set_cardinality Get number of members in sorted set. Args: key: The name of the key min_score: Minimum score (optional) max_score: Maximum score (opti... sorted_set_popmax Remove and return members with highest scores. Args: key: The name of the key count: Number of members to pop (optional) Returns: Pop... sorted_set_popmin Remove and return members with lowest scores. Args: key: The name of the key count: Number of members to pop (optional) Returns: Popp... sorted_set_range Get range of members from sorted set. Args: key: The name of the key start: Start index (inclusive) stop: Stop index (inclusive) w... sorted_set_range_by_lex Get range of members by lexicographical order. Args: key: The name of the key min_lex: Minimum value (inclusive) max_lex: Maximum valu... sorted_set_range_by_score Get range of members by score. Args: key: The name of the key min_score: Minimum score (inclusive) max_score: Maximum score (inclusive... sorted_set_rank Get rank of member in sorted set. Args: key: The name of the key member: The member to get rank for reverse: If True, get rank in reve... sorted_set_remove Remove member(s) from sorted set. Args: key: The name of the key *members: Members to remove Returns: Success message or error message sorted_set_remove_by_lex Remove members by lexicographical range. Args: key: The name of the key min_lex: Minimum value (inclusive) max_lex: Maximum value (inc... sorted_set_remove_by_rank Remove members by rank range. Args: key: The name of the key start: Start rank (inclusive) stop: Stop rank (inclusive) Returns: S... sorted_set_remove_by_score Remove members by score range. Args: key: The name of the key min_score: Minimum score (inclusive) max_score: Maximum score (inclusive... sorted_set_score Get score of member in sorted set. Args: key: The name of the key member: The member to get score for Returns: Score or error message stream_add Add entry to stream. Args: key: The name of the key field_dict: Dictionary of field-value pairs id: Entry ID (default "*" for auto-gen... stream_group_create Create consumer group. Args: key: The name of the key group_name: Name of consumer group id: ID to start reading from (default "$" for... stream_group_set_id Set consumer group's last delivered ID. Args: key: The name of the key group_name: Name of consumer group id: ID to set as last delive... string_set Set string value. Args: key: The name of the key value: The value to set ex: Expire time in seconds px: Expire time in millisecond... string_set_range Overwrite part of string. Args: key: The name of the key offset: Position to start overwriting value: String to write Returns: Su... type Returns the string representation of the type of the value stored at key. Args: key (str): The key to check. Returns: str: The type of ke...

DESTRUCTIVE TOOLS

6

EXECUTE TOOLS

4
How many tools does the Awslabs Valkey MCP server have? +

The Awslabs Valkey MCP server exposes 105 tools across 4 categories: Read, Write, Destructive, Execute.

How do I enforce policies on Awslabs Valkey tools? +

Use Intercept, the open-source MCP proxy. Write YAML rules for each tool — rate limits, argument validation, or deny rules — then run Intercept in front of the Awslabs Valkey server.

What risk categories do Awslabs Valkey tools fall into? +

Awslabs Valkey tools are categorised as Read (58), Write (37), Destructive (6), Execute (4). Each category has a recommended default policy.

Let agents act without letting them run wild.

Deterministic policy on every MCP tool call. Per-identity grants. Full audit log.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.