Skip to main content
Glama
robertn702

Sunsama MCP Server

get-user

Retrieve current user profile information including timezone settings and group details from the Sunsama task management system.

Instructions

Get current user information including profile, timezone, and group details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler implementation for the 'get-user' tool. Defines the tool configuration with name, description, schema, and execute function that fetches user data via injected client and formats as JSON response.
    export const getUserTool = withTransportClient({
      name: "get-user",
      description:
        "Get current user information including profile, timezone, and group details",
      parameters: getUserSchema,
      execute: async (_args: GetUserInput, context: ToolContext) => {
        // Client auto-injected by withTransportClient
        const user = await context.client.getUser();
    
        return formatJsonResponse(user);
      },
    });
  • Zod schema defining input parameters for get-user tool (empty object since no parameters are required).
    // Get user parameters (no parameters needed)
    export const getUserSchema = z.object({});
  • Local registration of getUserTool in the userTools array, which is exported for inclusion in global tool list.
    export const userTools = [getUserTool];
  • src/tools/index.ts:5-9 (registration)
    Global aggregation of all tools including userTools (containing get-user) into allTools, imported and registered in main.ts.
    export const allTools = [
      ...userTools,
      ...taskTools,
      ...streamTools,
    ];
  • Helper function used by get-user handler to format the user data as MCP-compliant JSON text response.
    export function formatJsonResponse(data: any) {
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(data, null, 2),
          },
        ],
      };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a 'Get' operation (implying read-only), but doesn't mention authentication requirements, rate limits, error conditions, or what happens if the user isn't logged in. For a user information tool with zero annotation coverage, this leaves significant behavioral gaps.

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?

The description is a single, efficient sentence that front-loads the core purpose ('Get current user information') and then specifies the data components. Every word earns its place with no redundancy or wasted text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema), the description is reasonably complete for its core purpose. However, for a user information tool with no annotations, it should ideally mention authentication context or what 'current user' means in the system's context to be fully complete.

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 has 0 parameters with 100% schema description coverage, so the baseline is 4. The description appropriately doesn't discuss parameters since none exist, and instead focuses on what data will be returned (profile, timezone, group details), which adds value beyond the empty schema.

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 clearly states the verb ('Get') and resource ('current user information'), specifying what data is retrieved (profile, timezone, group details). It distinguishes itself from sibling tools that all deal with tasks rather than user information, though it doesn't explicitly contrast with a hypothetical sibling user tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. While it's clearly for retrieving user data rather than task data (unlike all siblings), the description doesn't mention prerequisites, authentication needs, or when this specific user data is needed versus other user-related operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robertn702/mcp-sunsama'

If you have feedback or need assistance with the MCP directory API, please join our Discord server