Skip to main content
Glama

Search Teams

teams_search
Read-only

Search Teams messages by keyword to locate conversations across chats and channels; review matching hits and open linked chats for details.

Instructions

Full-text search of your Teams messages. Each hit links to its chat; open it with teams_read.

For mail, use mail_find; combine both for a cross-source search.

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": {
      "query": "<query>"
    },
    "name": "teams_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of hits.
queryYesWords to search for across your Teams chats and channels.
offsetNoSkip this many hits (paging).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the bar is lower, and the description usefully adds that each hit carries a link to its chat plus the follow-up tool to use. It omits result ordering/relevance behavior, but otherwise adds genuine workflow context beyond the annotations.

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?

Two short sentences, front-loaded with the core purpose and then the routing/next-step information. Nothing is redundant and every sentence earns its place.

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 simple read-only three-parameter search with no output schema, the definition covers what it searches, how hits are used, and which alternatives apply. Only ranking/ordering behavior is left unstated, a minor gap.

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 100% and each of query, limit, and offset is documented in the schema, so the baseline of 3 applies. The description adds no matching semantics such as phrase handling or what 'words to search for' implies for multi-word queries.

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?

'Full-text search of your Teams messages' names a specific verb and resource, and the second sentence actively routes mail queries to mail_find, so an agent can distinguish it from the sibling tools 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 Guidelines4/5

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

It states when to use mail_find instead and points to teams_read for opening a hit, which is clear routing guidance. The 'combine both for a cross-source search' clause is suggestive but vague about how an agent actually composes the two searches, keeping it short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.