set_cos_preferences
Replace THIS operator's full CoS preference block (or clear with empty). Use when they want a full rewrite of saved preferences. Per user_id only — not a global product prompt edit. [write-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a jus...
This record as markdown: /tools/com-getfreedomos-freedom-mcp/set-cos-preferences.md
What set_cos_preferences does on Freedom Mcp
AI agents use set_cos_preferences to create or update resources in Freedom Mcp, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Freedom Mcp environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
companyId | string | — | FreedomOS company id to act within (you must be a member). Required for company-scoped tools. |
cos_preferences | string | Yes | Full preferences text (≤2000 chars). Empty string clears. |
Parameters from the server's own tool schema.
Why set_cos_preferences is rated Medium
This tool creates or modifies user preference data (CoS = Class of Service preferences) in a reversible manner. It replaces an operator's saved preference configuration but does not delete it irreversibly—the preferences can be rewritten again.
From the tool's definition Tool description states 'Replace THIS operator's full CoS preference block' and 'Use when they want a full rewrite of saved preferences.' The verb 'Replace' and 'rewrite' indicate modification of stored data. Description confirms '[write-tier]' classification.
Attacks that exploit this kind of access
The rule that runs set_cos_preferences safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Freedom Mcp, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For set_cos_preferences, this is the rule to start with:
set_cos_preferences stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Freedom Mcp, apply this rule, and every set_cos_preferences call is checked against it from then on.
Questions about set_cos_preferences
Replace THIS operator's full CoS preference block (or clear with empty). Use when they want a full rewrite of saved preferences. Per user_id only — not a global product prompt edit. [write-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time.]. It is categorised as a Write tool in the Freedom Mcp MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
set_cos_preferences accepts 2 parameters: companyId, cos_preferences. Required: cos_preferences. The full parameter table on this page comes from the server's own tool schema.
Register the Freedom MCP server in PolicyLayer and add a rule for set_cos_preferences: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Freedom Mcp. Nothing to install.
set_cos_preferences is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the set_cos_preferences rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for set_cos_preferences. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
set_cos_preferences is provided by the Freedom MCP server (https://twuluxmoognlwtmaoqgo.supabase.co/functions/v1/freedom-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Freedom, and thousands of servers like it.
This server
Across the catalogue