Skip to main content
Glama

search_employee_activity

Read-onlyIdempotent

Inspect the retained evidence behind Employee Simulation and Training posture within one Organization. Select Employees by IDs, literal name/email text, current Groups or Dynamic Groups, or active state; omit selection to browse. Choose exactly one activity.source 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. Use searchEmployees for summaries or comparisons. This tool is independently usable and does 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. Continue with next_cursor even 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. If a page is too large, reduce limit or narrow selection and filters. Evidence is never silently truncated.

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.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, yet the description adds substantive traits beyond them: results are not an atomic cross-store snapshot, retained history stays readable when a program is disabled, deleted Training sessions are excluded, and evidence is never silently truncated. The pagination contract is unusually well disclosed (continue with next_cursor even after an empty activity page; null means exhausted; read_at is retained across pages), which is exactly the kind of behavior an agent cannot infer from annotations.

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?

Purpose is front-loaded and the remaining sentences are dense rather than padded, but it is a single long paragraph covering purpose, selection, pagination, consistency, and error recovery with no structural breaks, making it harder to scan. A few clauses restate schema content (cursor continuation, limit reduction) that could have been dropped without loss.

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 nested, two-branch, cursor-paginated search over a deeply nested activity schema, the description covers the selection model, per-source return contents, ordering, pagination termination, snapshot consistency, and retention semantics. Because an output schema exists, it correctly stops short of enumerating return fields, giving an agent everything needed to call it correctly across pages.

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 100%, so the baseline is 3; the description still adds value by clarifying that limit caps both the number of matching Employees selected and the number of activity records returned, and by stating result ordering (Employee ID then channel and Campaign ID for Simulation, or session ID for Training). It also enumerates the Employee selection modes (IDs, literal name/email, Groups/Dynamic Groups, active state) and warns that activity filters do not select Employees. It does not explain the TRAINING period.field choices, which the schema already covers well.

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?

The description opens with a specific verb and resource: 'Inspect the retained evidence behind Employee Simulation and Training posture within one Organization.' It then names the two concretely distinct modes (SIMULATION returns campaign/channel participations with outcomes and source events; TRAINING returns assignments with lifecycle dates and MCQ answers), so an agent can distinguish this from searchEmployees and search_campaigns without opening a 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?

It explicitly routes the agent: 'Use searchEmployees for summaries or comparisons,' and 'omit selection to browse' when no filter is needed. It also constrains the call shape ('Choose exactly one activity.source per call') and gives a recovery path ('If a page is too large, reduce limit or narrow selection and filters'), which covers both when to use this and when a sibling is the better choice.

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