Skip to main content
Glama

Search My Work

search_my_work
Read-only

Find your own or team tasks, and where in their sessions the words are. For continuing work, get the current repository key from the local plugin at query time and search that project first. Query: two to four key words of the work. Russian and English word forms match ("выпускал сертификат", "issued certificates"), translations do not: session titles are in English, so add the English terms to the user's words. Tasks come best match first (a title match outranks a word in a session, words found together outrank scattered ones), newest among equals. matched_sessions names the sessions the words were found in; a session's excerpt quotes the passage, and its cursor and text_offset go straight to get_session_excerpt. words_matched all_but_one: no task held every word, these miss one; none: the query held only stop words, the tasks are the newest. Why was this changed, or where did this code come from: pass paths (repository-relative, as git names them) or a commit sha from git blame or log, with agent_sessions, the values of that commit's Agent-Session trailer, and subject, the first line of its message; query may then be empty. A commit or a trailer finds its sessions in every repository (scope all), since an agent may have committed in another repository than its folder's: found_by says how, agent_session (the trailer names it), commit (its memory holds it) or team_commit (the team's repository puts it to it). Each matched session's change then gives the turn (cursor) where it changed the file or made the commit, and request, the person's last real request before it (short replies such as "yes" skipped): read from request.cursor to cursor with get_session_excerpt. own: true when the session made the change itself (its agent's edit or a git commit it ran), false when it only saw it in its git snapshots, as another session working in the same folder does; those that made it come first. found_by agent_session without a cursor: the trailer alone, which the hook writes into a commit made by hand too, for every session whose edits it holds, so it is not own; own comes from the session's git commit of that title (give subject) or its own edits of paths. op outside on a commit: the commit was made outside the session (by hand, a client's button) of files its agent edited; cursor is the agent's last edit of them before it. found_by edits_before: nothing names the commit (made by hand after the session, no trailer), and this session's agent last edited its files before it (give committed_at where the team's repository is not under the GitHub App): its work, not proven its commit; say so. closed_sessions: a teammate's session behind the change that you may not read (your team shows its members each other's sessions, their transcripts only to owners and admins): say whose it is and give its page, and that its author or an admin can tell more; nothing of it is returned. Offer the matching tasks when there are several; never silently broaden a repository search. No model generation.

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": "search_my_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
pathsNoFiles to find the sessions that changed them, relative to the repository root.
queryYes
scopeNoDefault project. Use all only for an explicitly broader search.
commitNoA commit sha, 7 to 40 hex characters, to find the session that made it.
cursorNo
subjectNoThe first line of that commit's message (git show -s --format=%s): tells the session's git commits apart when it committed in another repository.
task_idNo
project_idNo
project_keyNo
committed_atNoWhen that commit was made (git show -s --format=%cI): with no trailer and no session that made it, the session whose agent last edited its files before then is found (found_by edits_before).
agent_sessionsNoThe Agent-Session trailer values of that commit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the read-only annotations, the description explains ranking behavior, word-form matching, stop-word handling, found_by modes, own true/false semantics, permission-limited closed_sessions, and that the tool performs no model generation. These are substantial behavioral details that an agent could not infer from readOnlyHint alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and key usage modes, and most sentences carry useful information. However, it is a very dense single paragraph with long, convoluted sentences and repeated explanations of own/found_by behavior that make it harder to scan than necessary.

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 complex 12-parameter search tool with no output schema, the description explains return semantics in detail: task ordering, matched_sessions, excerpts, cursor/text_offset, words_matched states, found_by, own, and closed_sessions. This is sufficient for an agent to interpret results and chain into get_session_excerpt.

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 50% schema coverage across 12 parameters, the description compensates well by explaining paths as repository-relative git names, commit as a git blame/log sha, agent_sessions as trailer values, subject as the commit message's first line, and committed_at for edits_before. It does not fully explain limit, task_id, or project_id, so it is strong but not exhaustive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resources: "Find your own or team tasks, and where in their sessions the words are." It clearly positions the tool around task/session keyword search and points to get_session_excerpt for reading matched passages, though it does not explicitly distinguish itself from search_coding_agent_sessions or list_team_tasks.

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 gives explicit mode-based guidance: use the repository key first for continuing work, pass paths or a commit sha for provenance questions, and use scope all only for explicitly broader searches. It also explains that query may be empty in commit mode, tells the caller to offer matching tasks when several exist, and warns never to silently broaden a repository search.

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