Skip to main content
Glama

Set activity audience

set_activity_audience
DestructiveIdempotent

Set who the activity is aimed at: content language, target audience and knowledge area. Call it only when the user asks for one of these; a title or a description never needs it.

Input Schema

NameRequiredDescriptionDefault
areaNoKnowledge area id. 0 removes the current one.
langNoContent language code (es, en, fr...). Changing it relabels the activity for that language.
audienceNoWho the activity is for, as {"kind": "age"|"subject", "value": number}: kind age takes a recommended age from 0 to 21, kind subject takes a subject id. They are the two ways of saying the same thing, so this object holds only one of them.
activity_idYesId of the activity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=false, so the agent knows this is a mutating but repeatable call. The description adds the scope restriction, but does not disclose what actually gets overwritten (e.g. that area=0 clears an existing knowledge area, or that changing lang relabels the activity). Adequate, not rich.

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, zero filler, with the purpose front-loaded and the usage restriction immediately after. Every clause 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?

For a four-parameter mutation tool with full schema coverage, no output schema, and annotations carrying the safety profile, the description covers purpose and when-to-use adequately. The only real gap is behavioral: it does not warn that the call overwrites or clears existing audience/language/area values.

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 description coverage is 100%, so the schema already documents activity_id, area, lang and the nested audience object in detail. The description only paraphrases the same three concepts at a higher level, adding no syntax, format or constraint beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Set) and resource (activity audience) and enumerates the three dimensions it controls: content language, target audience, knowledge area. This clearly separates it from nearby mutators like set_activity_content or set_activity_privacy, though it never names those siblings explicitly.

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

Usage Guidelines4/5

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

Gives an explicit when-not condition: 'Call it only when the user asks for one of these; a title or a description never needs it.' That is real routing guidance. It stops short of naming the alternative tool an agent should use instead for content or metadata edits.

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