Skip to main content
Glama

Update Organization Preferences

update_organization_preferences
Idempotent

Update an organization's preferences (PUT /api/organizations/{org_id}/preferences, body { preferences }). org_id is required. Common keys: currency, language, dismissed_quick_setup. Keys are shallow-merged into the existing preferences — omitted keys are left untouched — so send only the keys you want to change. Returns the updated organization. currency is the org-wide DISPLAY currency (a 3-letter ISO-4217 code, case-insensitive here). The backend validates it against the 28 supported codes (USD, EUR, GBP, CAD, AUD, JPY, CNY, INR, BRL, MXN, CHF, KRW, SGD, HKD, NZD, SEK, NOK, DKK, ZAR, AED, SAR, PLN, THB, IDR, MYR, PHP, ILS, TRY) and rejects anything else with a 400. ⚠ mcp_writes_enabled CANNOT BE SET HERE. That preference is the organization switch that allows AI agents to make changes over MCP; this tool strips it, tells you it did, and applies the rest. Only a human org admin can change it, in Settings → Organization → AI agent access. WRITE TOOL — writes are OFF by default for every organization: this call needs the admin:write scope, the organization switch turned on, an admin or super_admin org role, and confirm:true. Without all four it refuses and changes nothing. Idempotent (re-sending the same preferences is a no-op). Example: { "org_id": "org-123", "preferences": { "currency": "USD", "language": "en" }, "confirm": true }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "org_id": "<org_id>",
      "preferences": "<preferences>"
    },
    "name": "update_organization_preferences"
  }
}

Input Schema

NameRequiredDescriptionDefault
org_idYesThe organization id whose preferences to update (PUT /api/organizations/{org_id}/preferences). Required.
confirmNoSet to true to actually perform this write. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side.
preferencesYesThe preference keys to set (e.g. { currency, language, dismissed_quick_setup }). Shallow-merged into the existing preferences server-side — keys you omit are left untouched, so send only what you want to change. Sent as { preferences } to the backend. ⚠ `mcp_writes_enabled` (the switch that allows AI agents to make changes over MCP) is REFUSED here and must be changed by a human in Settings → Organization → AI agent access.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the description goes well beyond them: shallow-merge semantics, the silent-then-reported stripping of `mcp_writes_enabled`, the 400 rejection on unsupported currency codes, and the fact that the updated organization is returned. The only real gap is that it doesn't spell out what happens to unrelated org state during a merge — but for a preference patch that is minor.

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?

Front-loaded with endpoint, merge semantics, and the hard exclusion, then warnings, then prerequisites — a sensible order for a write tool. It is long and repeats some material already present verbatim in the schema (shallow-merge, the `mcp_writes_enabled` warning), which costs it a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter mutation with no output schema, everything an agent needs is present: authorization requirements, merge behavior, accepted values, failure modes, and the return value. No questions remain that would cause a mis-invocation.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds genuine meaning the schema lacks: the full list of 28 accepted ISO-4217 codes and the 400 failure mode, the explicit clarification that `currency` is the DISPLAY currency, and a worked example object. It also reinforces why `confirm:true` exists rather than just repeating the schema constraint.

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?

States a specific verb and resource ('Update an organization's preferences') and pins it down with the exact endpoint and body shape. The scope is sharply delimited by the explicit exclusion of `mcp_writes_enabled`, so an agent can tell this apart from sibling writes like `update_organization_name` without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use mechanics ('send only the keys you want to change') and enumerates the four preconditions — admin:write scope, org switch on, admin/super_admin role, confirm:true — that must all hold or the call refuses. It also names the alternative path for the excluded preference (Settings → Organization → AI agent access), which is exactly the routing an agent needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources