Skip to main content
Glama

search_employees

Read-onlyIdempotent

Find Employees within one Organization and return their Simulation, Training and/or canonical scoring summaries. Employee selection supports IDs or literal name/email text, optionally restricted by group membership and active state; omitted selection filters browse Employees. At least one of insights.simulation, insights.training or insights.scoring is required. An empty object requests that section without additional evidence filters. Simulation summaries include the Simulation score, participation counts, and compromise and report rates. Training summaries include Learner Session completion, success, and overdue counts. Scoring returns the complete canonical score, channel and Training components, badge bonus, inactivity decay, policy and evaluation time. It requires Admin/Owner. Scoring ignores Simulation/Training filters. Opt-in history requires at most five exact IDs, limit at most five, and at most 30 UTC sampled points. Current-only scoring supports the ordinary 50-employee page. Insight filters affect the evidence summarized, not which Employees are selected. Returns one summary per Employee, with pagination, rather than individual Simulation observations or Learner Sessions. Does not discover, filter, or rank Employees by score.

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": {
      "insights": {
        "training": {},
        "simulation": {}
      },
      "employees": {
        "query": "ada@example.com"
      },
      "organization_id": "organization-1"
    },
    "name": "search_employees"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum Employees per page. Preserve this value when continuing a cursor.
cursorNoOmit or use null for the first page. Otherwise pass next_cursor from the previous response, preserving all other arguments.
insightsYesRequest simulation, training, scoring, or any combination. At least one section is required; {} alone is invalid. Filters narrow evidence, not Employee selection.
employeesNoSelect Employees using current identity, group membership, and active state. Omit to browse all Employees. Evidence filters do not change this selection.
organization_idYesID of one Organization accessible to the authenticated Member.

Output Schema

NameRequiredDescriptionDefault
contextYes
read_atYesEvidence evaluation cutoff retained across cursor pages. Employee identity, active state, and group membership remain current.
employeesYes
request_idYes
next_cursorYesPass as cursor with unchanged arguments to continue, even if this page has no Employees. Null means the selection is exhausted.
missing_employee_idsYesRequested Employee IDs processed on this page that were not returned. They may be unknown, inaccessible, or excluded by selection filters. Empty when searching without 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 it as a read-only, idempotent, non-destructive, closed-world read, so the bar is lower; the description still adds substantial context: permission requirements, the five-ID/limit-5/30-sampled-point cap on history, the 50-employee current-only page limit, and the key semantic that insight filters narrow evidence but not the Employee selection. It also clarifies that pagination exists.

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-loaded with purpose and well ordered (selection → section requirement → per-section outputs → limits → exclusions), and nearly every sentence carries a constraint. It is dense and reads as a wall of prose, so a few structural cues would improve scanability, but little is redundant.

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 five-parameter tool with nested objects, enum lists, and an output schema, the description covers everything the agent needs: required sections, selection-vs-evidence semantics, permission gate for scoring, history caps, page size, and cursor continuation hints. Return-value detail is deferred to the output schema, which is appropriate.

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?

With 100% schema description coverage, 3 is the baseline, but the description adds genuine meaning beyond the schema: the distinction between selection filters and evidence filters, the empty-object convention ('An empty object requests that section without additional evidence filters'), and the history bounds. It stops short of documenting every filter (e.g. channels, statuses) but the schema handles those.

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?

Opens with a specific verb and resource ('Find Employees within one Organization and return their Simulation, Training and/or canonical scoring summaries') and explicitly bounds the scope: it returns one summary per Employee rather than individual Simulation observations or Learner Sessions, and does not discover/filter/rank by score. An agent can distinguish it from search_employee_activity or the simulation-campaign lookups without opening the 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?

Gives explicit inclusion rules ('At least one of insights.simulation, insights.training or insights.scoring is required'), the omission behavior ('omitted selection filters browse Employees'), and negative guidance ('Does not discover, filter, or rank Employees by score'). It also states the Admin/Owner prerequisite for scoring and the conditions under which scoring ignores Simulation/Training filters.

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