Tool Details: preferences

Basic Information

Tool Name:preferences
Asset Name:Preferences
Description:Change the user's preferences: one map of what every agent acting for them should know, such as units, tone, timezone or diet. Your current preferences are in context; read x/preferences if they are not. Pick the change with `command`. 'set' stores `value` at `path`. 'remove' deletes the entry at `path`; with a `value`, it removes the items equal to it from the list at `path`. 'append' adds `value` to the end of the list at `path`, creating the list if needed. 'insert' puts `value` into a list before a position, with `path` ending in the position. 'merge' merges a map `value` into the map at `path`, or into all preferences when there is no path; a key set to null is removed, and any other value, a list included, replaces what was there. A path separates keys with '/', such as 'units' or 'diet/allergies'; a number picks a list item, counting from 0. Every command except merge needs a path. Use append or insert to add to a list.
Adapter:preferences
Asset Hash:0xbeb4f706ff07c3cbf2e9e155644ccaf7964c21e36504de13ce88817d5716dd53
Input
PropertyTypeDescription
valueanyThe value to set, append or insert; a map to merge; or, for remove, the list item to take out.
command*stringThe change to make.
pathstringWhere in the preferences: keys separated by '/', such as 'units', 'diet/allergies' or 'diet/allergies/0'. Required for every command except merge.
Output
PropertyTypeDescription
removedbooleanFalse when remove found nothing to remove.
okbooleanTrue when the change was made.

MCP Tool Usage Examples

This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:

JSON-RPC Call Example:

POST to https://venue-3.covia.ai/mcp

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "preferences",
    "arguments": {
      "input": "your input here"
    }
  }
}
cURL Example:
curl -X POST https://venue-3.covia.ai/mcp \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "preferences",
      "arguments": {
        "input": "your input here"
      }
    }
  }'
Python Example:
import requests
import json

url = "https://venue-3.covia.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "preferences",
        "arguments": {
            "input": "your input here"
        }
    }
}

response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');

const url = 'https://venue-3.covia.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'preferences',
        arguments: {
            input: 'your input here'
        }
    }
};

fetch(url, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));

Asset Metadata

{
	"name": "Preferences",
	"description": "Change the user's preferences: one map of what every agent acting for them should know, such as units, tone, timezone or diet. Your current preferences are in context; read x/preferences if they are not. Pick the change with `command`. 'set' stores `value` at `path`. 'remove' deletes the entry at `path`; with a `value`, it removes the items equal to it from the list at `path`. 'append' adds `value` to the end of the list at `path`, creating the list if needed. 'insert' puts `value` into a list before a position, with `path` ending in the position. 'merge' merges a map `value` into the map at `path`, or into all preferences when there is no path; a key set to null is removed, and any other value, a list included, replaces what was there. A path separates keys with '/', such as 'units' or 'diet/allergies'; a number picks a list item, counting from 0. Every command except merge needs a path. Use append or insert to add to a list.",
	"dateCreated": "2026-11-01T00:00:00Z",
	"operation": {
		"adapter": "preferences:edit",
		"readOnly": false,
		"toolName": "preferences",
		"input": {
			"type": "object",
			"properties": {
				"command": {
					"type": "string",
					"enum": ["set", "remove", "append", "insert", "merge"],
					"description": "The change to make."
				},
				"path": {
					"type": "string",
					"description": "Where in the preferences: keys separated by '/', such as 'units', 'diet/allergies' or 'diet/allergies/0'. Required for every command except merge."
				},
				"value": {
					"description": "The value to set, append or insert; a map to merge; or, for remove, the list item to take out."
				}
			},
			"required": ["command"]
		},
		"output": {
			"type": "object",
			"properties": {
				"ok": { "type": "boolean", "description": "True when the change was made." },
				"removed": { "type": "boolean", "description": "False when remove found nothing to remove." }
			}
		}
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index