Skip to main content
Glama

Set Test Audience

set_test_audience
DestructiveIdempotent

Replace shared audience selections and participant counts; null clears. Use existing audience/tester IDs. Preserves blocks. No launch.

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": {
      "audience": "<audience>",
      "testId": "<testId>"
    },
    "name": "set_test_audience"
  }
}

Input Schema

NameRequiredDescriptionDefault
testIdYes
audienceYes
constructionNoOptional decisions; proposed wording stays separate. Acceptance needs current proposalRevision and matching saved wording. Never launch approval.
expectedRevisionNoLegacy compatibility only; ignored. The server resolves the current draft revision automatically.

Output Schema

NameRequiredDescriptionDefault
urlNoOpen the draft in Uxia.
testIdNo
blockIdNoServer-assigned ID of the added block. Use it for subsequent edits and references.
editableNo
definitionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / audience / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "selections": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "audienceId": {
      -              "pattern": "^[a-fA-F0-9]{24}$",
      -              "type": "string"
      -            },
      -            "requestedCount": {
      -              "exclusiveMinimum": 0,
      -              "type": "integer"
      -            },
      -            "selectedTesterIds": {
      -              "items": {
      -                "pattern": "^[a-fA-F0-9]{24}$",
      -                "type": "string"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "audienceId",
      -            "requestedCount"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "selections"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "selections": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "audienceId": {
      +              "pattern": "^[a-fA-F0-9]{24}$",
      +              "type": "string"
      +            },
      +            "requestedCount": {
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            "selectedTesterIds": {
      +              "items": {
      +                "pattern": "^[a-fA-F0-9]{24}$",
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "audienceId",
      +            "requestedCount"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "selections"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / construction / items / properties / proposalRevision / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / expectedRevision / maximum
      Added value: +9007199254740991
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / definition / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / definition / properties / blocks / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / definition / properties / revision / maximum
      Added value: +9007199254740991
  2. Changed4 schema fields changed
    • changedInput schema / properties / expectedRevision / description
      Previous value: -"Current definition.revision. Reread on conflict; never retry blindly."New value: +"Legacy compatibility only; ignored. The server resolves the current draft revision automatically."
    • removedInput schema / properties / expectedRevision / exclusiveMinimum
      Removed value: -0
    • addedInput schema / properties / expectedRevision / minimum
      Added value: +0
    • changedInput schema / required
      Previous value: -[
      -  "expectedRevision",
      -  "audience",
      -  "testId"
      -]New value: +[
      +  "audience",
      +  "testId"
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties / blockId
      Added value: +{
      +  "description": "Server-assigned ID of the added block. Use it for subsequent edits and references.",
      +  "type": "string"
      +}
  4. Changed4 schema fields changed
    • changedInput schema / properties / audience / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "selections": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "audienceId": {
      -              "pattern": "^[a-fA-F0-9]{24}$",
      -              "type": "string"
      -            },
      -            "requestedCount": {
      -              "exclusiveMinimum": 0,
      -              "type": "integer"
      -            },
      -            "selectedTesterIds": {
      -              "items": {
      -                "$ref": "#/properties/audience/anyOf/0/properties/selections/items/properties/audienceId"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "audienceId",
      -            "requestedCount"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "selections"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "selections": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "audienceId": {
      +              "pattern": "^[a-fA-F0-9]{24}$",
      +              "type": "string"
      +            },
      +            "requestedCount": {
      +              "exclusiveMinimum": 0,
      +              "type": "integer"
      +            },
      +            "selectedTesterIds": {
      +              "items": {
      +                "pattern": "^[a-fA-F0-9]{24}$",
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "audienceId",
      +            "requestedCount"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "selections"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / testId / $ref
      Removed value: -"#/properties/audience/anyOf/0/properties/selections/items/properties/audienceId"
    • addedInput schema / properties / testId / pattern
      Added value: +"^[a-fA-F0-9]{24}$"
    • addedInput schema / properties / testId / type
      Added value: +"string"
  5. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is given. The description adds genuinely new behavior: 'null clears' (the destructive consequence of passing null), 'Preserves blocks' (partial-update scope, other test state survives), and 'No launch' (side-effect boundary). It does not cover error behavior or whether a draft must exist, which keeps it below 5.

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?

Four short clauses, front-loaded with the mutation verb, with no filler. It is telegraphic to the point of being fragmentary ('No launch.'), which slightly hurts readability but every clause carries information.

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

Completeness3/5

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

With an output schema present, return values need not be explained, and the annotations carry the safety profile. Still, for a destructive replace operation the description omits what happens to selections omitted from the payload, whether a draft revision is required, and any failure conditions — gaps an agent would want closed before invoking.

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 roughly 50%: nested fields like construction/status/proposalRevision are well documented in the schema itself. The description's 'null clears' is a real semantic add for the audience anyOf-null branch, and 'Use existing audience/tester IDs' clarifies ID provenance. But it says nothing about requestedCount, selectedTesterIds, or expectedRevision semantics, so compensation for the coverage gap is only partial.

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?

The definition opens with a specific verb+resource: 'Replace shared audience selections and participant counts,' which tells an agent exactly what state changes. It is distinguishable from sibling mutation tools like set_test_construction or set_test_tags by naming the audience/count domain. It stops short of naming an alternative explicitly, which keeps it at 4 rather than 5.

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

Usage Guidelines3/5

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

Prerequisites are implied by 'Use existing audience/tester IDs' (no creation of new audiences here) and a boundary is drawn with 'No launch,' which hints the agent should call launch_test separately. However, there is no explicit statement of when to choose this over set_test_construction or create_audience, so routing must be inferred.

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