Skip to main content
Glama
mikimatsub

swsd-mcp

by mikimatsub

swsd_get_me

Read-onlyIdempotent

Fetch the SWSD user record (id, email, name, role, department, site, groups, assignment status) to resolve 'me' or 'my' requests. Pass the returned id/email to ticket filters for their tickets.

Instructions

Get the SWSD user record for the token's owner — id, email, name, title, role, department, site, group_ids, and assignment status. Call this first when the request mentions "me", "my", or "I" (e.g. "my tickets", "tickets in my group", "tickets assigned to me"), then pass the returned id/email to assignee_email or requester_email filters on swsd_list_incidents (or use swsd_list_my_incidents which does this in one call). Without this step, "my X" queries cannot be answered correctly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
userYes
sourcesYesWhich paths populated the response. "jwt" is always present (JWT decode is mandatory). "users-endpoint" is present when /users/{id}.json succeeded. "profile-fallback" is present when /profile.json succeeded (adds last_login).
jwt_claimsYesAll claims found in the JWT payload. SWSD typically includes user_id (modern; observed in 2026 production tokens) or user_ic (legacy; cited in older API docs samples), plus generated_at. ESM tenants may include service_provider_id or similar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds value beyond annotations by disclosing the return content (the full field list) and the critical sequencing dependency — that the returned id/email must be passed into follow-up filters. This behavioral context about usage flow is genuinely additive.

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 in the first sentence, and each subsequent sentence earns its place — usage triggers, follow-up steps, and the alternative. It runs slightly long, but the verbosity is justified because this tool has a subtle usage pattern (must be invoked first for 'my X' queries) that warrants explanation. No wasted sentences.

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?

Despite zero parameters and a simple signature, the tool has a non-obvious invocation pattern and an output schema (which covers return-value details). The description covers everything an agent needs: what it returns (field enumeration), when to call it first, how to chain the output into downstream tools, and the failure mode if skipped. Nothing essential 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?

The tool takes zero parameters (schema coverage trivially 100%), so the description carries no parameter burden. Per rubric, 0-param tools get a baseline of 4. The description correctly communicates that identity is derived from the token's owner rather than from parameters, which is the key semantic an agent needs to understand.

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 ('Get') + resource ('SWSD user record for the token's owner') and enumerates the returned fields (id, email, name, title, role, department, site, group_ids, assignment status). It clearly distinguishes from siblings — it's the only tool that fetches the current token owner's record, versus swsd_list_users which lists all users.

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?

Explicitly specifies when to call it ('Call this first' when the request mentions 'me', 'my', or 'I') with concrete examples ('my tickets', 'tickets in my group', 'tickets assigned to me'). It names the alternative (swsd_list_my_incidents) that does this in one call, effectively stating when-not-to-use, and explains the consequence of skipping this step ('my X' queries cannot be answered correctly).

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