Skip to main content
Glama

Update Collection Rules

update_collection_rules

Replace a collection's filtering rules and rebuild its document allow-list from current workspace data to control which documents are included.

Instructions

Replace an AFFiNE collection's rules and rebuild its allow-list from current workspace documents. This can change which docs appear in the collection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rulesYesRule set used to rebuild the collection allow-list.
workspaceIdNoAFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured.
collectionIdYesAFFiNE collection id from list_collections or create_collection.
Behavior3/5

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

The description adds context beyond annotations by noting that the tool 'rebuilds its allow-list from current workspace documents' and 'can change which docs appear in the collection.' However, it does not detail side effects, authorization needs, or rate limits. Annotations indicate non-destructive and non-idempotent, which aligns with the description, so no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no wordiness. The action and effect are front-loaded. Every sentence earns its place.

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 the tool's moderate complexity (3 params, nested objects) and no output schema, the description sufficiently explains the transformation and its impact on documents. It covers the 'why' (changes which docs appear) and the 'how' (rebuilds from current workspace docs). Slightly more detail on return value or confirmation would push to 5.

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 coverage is 100%, so all parameters are already described in the schema. The description adds no additional meaning beyond the parameter names and restates the action. Baseline 3 is appropriate.

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 replaces collection rules and rebuilds the allow-list, which distinguishes it from sibling tools like 'update_collection' and 'create_collection'. The verb 'Replace' and specific resource 'collection rules' are precise.

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

Usage Guidelines2/5

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

No explicit guidance is given on when to use this tool versus alternatives or when not to use it. The description implies usage for changing collection rules after creation but lacks any context about exclusions or prerequisites.

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/DAWNCR0W/affine-mcp-server'

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