Skip to main content
Glama

track_preferences_batch

Track multiple user preferences in a single transaction to store them in session memory. Batch updates minimize the number of API calls required.

Instructions

Track multiple preferences in a single transaction (40-60% faster)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idNoUser ID (default: 'default')
preferencesYesArray of preferences to track
idempotency_keyNoOptional idempotency key for safe retries
Behavior2/5

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

With no annotations, the description must fully disclose behavioral traits. It mentions 'single transaction' (suggesting atomicity) and a performance claim, but it does not explain what 'track' actually does (e.g., store, update, log), what side effects occur, whether failures roll back, or how the optional idempotency_key influences behavior. The description leaves critical behavioral aspects unspecified.

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?

The description is a single sentence that front-loads the core action and resource, and includes a compelling performance advantage. It is concise with no wasted words. However, it lacks any additional structured context (e.g., links to related tools or usage hints), so it is not maximally informative, but it is well-organized for a one-liner.

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 has a nested array structure with required fields, no output schema, and no annotations. The description is too sparse to give an agent enough context to invoke it correctly: it does not state what the return value is, error handling behavior, or when to prefer this over the singular track_user_preference. For a batch mutation tool with idempotency_key support, this falls short of completeness.

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?

The input schema provides descriptions for all three top-level parameters (user_id with default, preferences as an array, idempotency_key as optional). Since schema description coverage is 100%, the baseline is 3. The description adds no extra semantic detail beyond the schema—it only mentions that multiple preferences are handled and that it is faster, which does not clarify parameter usage or constraints.

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?

The description clearly states the tool tracks multiple preferences in a batch operation, with a specific performance benefit (40-60% faster). This distinguishes it from the sibling track_user_preference, which likely handles a single preference. The verb 'Track' plus the resource 'preferences' and the batch scope make the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies this tool should be used when tracking multiple preferences at once, and the speed advantage suggests it is preferable over single-item alternatives for batch workloads. However, it does not explicitly state when not to use it, nor does it name the alternative tool (track_user_preference) or provide exclusions. Guidance is implied rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lovellfelix/session-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server