Skip to main content
Glama

Update Collection Rules

update_collection_rules

Replace a collection's rule set and rebuild its allow-list based on specified filters and match logic from workspace documents.

Instructions

Replace a collection's rules and rebuild its allow-list from workspace docs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdNo
collectionIdYes
rulesYesRule set used to rebuild the collection allow-list.
Behavior3/5

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

With no annotations provided, the description must disclose behavioral traits. It does state that the tool replaces rules and rebuilds the allow-list, implying mutation. However, it omits side effects like whether the operation is reversible, if it requires special permissions, or how it affects existing rules beyond replacement. This is adequate but lacks depth for a write operation.

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?

The description is a single sentence of 10 words, front-loading the verb and key outcome. Every word earns its place; there is no repetition or extraneous information, making it efficient for an agent to parse quickly.

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?

Given the complexity of the input (nested object with matching logic) and the lack of an output schema, the description is too brief. It does not explain the rules structure, the rebuild process, what the tool returns, or how it interacts with sibling tools like create_collection. The agent lacks sufficient information to use the tool confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 3 parameters with only 33% coverage (only 'rules' has a description). The description does not add any meaning for 'workspaceId' or 'collectionId', and while it mentions 'rules', it does not elaborate on the structure or constraints beyond what the schema provides. With low schema coverage, the description should compensate but fails to do so.

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 uses the specific verb 'Replace' and identifies the resource as 'a collection's rules', clearly distinguishing it from sibling tools like update_collection or add_doc_to_collection. It also states the outcome of rebuilding the allow-list, making the tool's sole 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 Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as update_collection or create_collection. It does not state prerequisites, limitations, or scenarios where another tool would be more appropriate, leaving the agent without decision-making context.

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