Skip to main content
Glama

Minds: Synthetic Market Research

Attach Audiences to Study

attach_study_audiences
Idempotent

Attaches existing accessible Audiences without removing others, planning or running research. Optional segmentSelections retain exact matches. Returns attached/alreadyAttached IDs; retries are safe. Link sharing makes these Audiences and Minds public. Validates access and plan eligibility.

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": {
      "audienceIds": "<audienceIds>"
    },
    "name": "attach_study_audiences"
  }
}

Input Schema

NameRequiredDescriptionDefault
studyNoStudy id or name. Omit to use the active Study of this MCP session.
audienceIdsYesOne to 50 existing Audiences to attach to this Study.
segmentSelectionsNoOptional list of {audienceId, segments}, where segments contains up to three {formationId, subgroupId} pairs from that Audience's segment catalogue (use list_formations to obtain their IDs). Choose at most one segment per dimension. Different dimensions intersect; only the matching Minds participate. The accepted participant set is retained for later questions and retries. Omit an Audience to use all its Minds.

Output Schema

NameRequiredDescriptionDefault
studyIdNoStudy receiving the Audiences.
attachedNoAudience IDs added now.
alreadyAttachedNoAudience IDs already attached.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / segmentSelections
      Added value: +{
      +  "description": "Optional list of {audienceId, segments}, where segments contains up to three {formationId, subgroupId} pairs from that Audience's segment catalogue (use list_formations to obtain their IDs). Choose at most one segment per dimension. Different dimensions intersect; only the matching Minds participate. The accepted participant set is retained for later questions and retries. Omit an Audience to use all its Minds.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "audienceId": {
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "segments": {
      +        "items": {
      +          "properties": {
      +            "formationId": {
      +              "format": "uuid",
      +              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +              "type": "string"
      +            },
      +            "subgroupId": {
      +              "format": "uuid",
      +              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "formationId",
      +            "subgroupId"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 3,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "audienceId",
      +      "segments"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotentHint and destructiveHint=false, yet the description adds the non-obvious consequence that link sharing makes the Audiences and Minds public, notes that existing attachments are preserved, and states which IDs are returned. "Retries are safe" largely restates idempotentHint, which keeps this just below top marks.

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?

Five short sentences, front-loaded with the action and its exclusions, then side effects, then return value. Every clause carries information; the telegraphic style ("without removing others, planning or running research") costs little and saves space.

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 nested-parameter mutation with an output schema, the description covers the safety profile, the visibility side effect, prerequisites, and return shape. The remaining gap is guidance on when this attachment is the right step versus other study/audience operations.

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% and the nested study/audienceIds/segmentSelections fields are documented in detail there, so baseline 3 applies. The description's only addition, "segmentSelections retain exact matches," is vaguer than the schema's own explanation of dimension intersection and retention.

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 ("Attaches existing accessible Audiences") plus the boundary conditions that matter: it does not remove other Audiences and does not plan or run research. That negative scoping distinguishes it from plan/run siblings without needing to name them.

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 a clear precondition set — Audiences must already exist and be accessible, and plan eligibility is validated — and implicitly excludes this tool for research execution. It does not name an alternative sibling (e.g., a create/link path) or say when to prefer another tool, so it stops short of full routing guidance.

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.