Skip to main content
Glama

search_employee_activity

Read-onlyIdempotent

Read retained evidence behind Employee Simulation and Training posture within one Organization. Employee selection supports IDs, literal name/email text, current Groups or Dynamic Groups, and active state; an omitted selection browses Employees. Exactly one activity.source is required per call. SIMULATION returns complete campaign/channel participations with canonical facts, outcomes and retained source events. TRAINING returns assignments with lifecycle dates and retained MCQ answers. Results contain individual activity records rather than Employee summaries or comparisons and do not rank Employees by score. Each call selects at most limit matching Employees and returns at most limit activity records. Ordering is Employee ID then channel and Campaign ID for Simulation, or session ID for Training. next_cursor can be present after an empty activity page; null means the search is exhausted. read_at is retained across pages. Current identity and membership and late-arriving records can change; this is not an atomic cross-store snapshot. Retained history remains readable when a program is disabled. Deleted Training sessions are excluded. Pages that exceed evidence or response bounds return an error. A smaller limit or narrower selection and filters can reduce page size. Evidence is never silently truncated.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "activity": {
        "source": "SIMULATION",
        "filters": {}
      },
      "employees": {
        "ids": [
          "employee-1"
        ]
      },
      "organization_id": "organization-1"
    },
    "name": "search_employee_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum matching Employees selected and maximum activity records returned per call, from 1 to 50. Defaults to 25. Preserve this value when continuing a cursor.
cursorNoOmit or use null for the first page. Continue with next_cursor and unchanged arguments, even after an empty activity page. Stop only when next_cursor is null.
activityYesExactly one source per call. Filters select activity records, not Employees.
employeesNoCurrent Employee selection. Omit to browse. Matching Employees are paged using limit and cursor.
organization_idYesID of one Organization accessible to the authenticated Member.

Output Schema

NameRequiredDescriptionDefault
contextYes
read_atYesEvidence cutoff retained across pages. Current Employee selection, content edits and late-arriving source records can affect later pages; source stores do not share an atomic snapshot.
activityYes
request_idYes
next_cursorYesContinue with this cursor even when items is empty: later Employees may have matching activity. Null means the search is exhausted.
missing_employee_idsYesRequested IDs that are unknown, inaccessible, or excluded by current selection filters. Empty without exact IDs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing non-obvious traits: results are not an atomic cross-store snapshot, late-arriving records and current identity/membership can change results, retained history stays readable when a program is disabled, deleted Training sessions are excluded, and pages exceeding evidence or response bounds error rather than truncating silently. It also explains the next_cursor-after-empty-page edge case and that read_at is retained across pages.

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-loads the purpose, then the selection rule, then source-specific returns, then pagination and consistency caveats, in a logical order with no filler. It is dense and some sentences are long, but each carries distinct operational information an agent needs.

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 tool with a nested oneOf source discriminator, dual-purpose paging, and an output schema that already defines return values, the description covers everything else an agent needs: source exclusivity, employee selection modes, ordering, cursor lifecycle, staleness, and error conditions. Nothing material for correct invocation is missing.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3, but the description adds meaning the schema does not: limit caps both matching Employees selected and activity records returned, ordering is Employee ID then channel and Campaign ID (Simulation) or session ID (Training), and cursor continuation requires unchanged arguments. It does not restate filter semantics, which the schema already documents thoroughly.

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: 'Read retained evidence behind Employee Simulation and Training posture within one Organization.' It also explicitly distinguishes the output from sibling territory ('individual activity records rather than Employee summaries or comparisons'), so an agent can tell this apart from search_employees without opening either schema.

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 clear selection guidance: employees can be targeted by IDs, literal name/email text, current Groups or Dynamic Groups, and active state, while an omitted selection browses all Employees, and exactly one activity.source is required per call. It stops short of naming a sibling tool or an explicit 'do not use this when…' exclusion, so the alternative routing is implied rather than stated.

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