Skip to main content
Glama

List Activity

list_activity

Display recent project activity feed from Codecks to track updates, manage workflows, and monitor team progress.

Instructions

Show recent activity feed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Implementation Reference

  • Tool registration with schema definition. The list_activity tool is registered with title 'List Activity', description, and input schema (z.object with limit parameter default 20). This includes both the registration metadata and the handler function that executes the tool logic.
    server.registerTool(
      "list_activity",
      {
        title: "List Activity",
        description: "Show recent activity feed.",
        inputSchema: z.object({
          limit: z.number().default(20),
        }),
      },
      async (args) => {
        try {
          const result = await client.listActivity(args.limit);
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(finalizeToolResult(sanitizeActivity(result))),
              },
            ],
          };
        } catch (err) {
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(finalizeToolResult(handleError(err))),
              },
            ],
          };
        }
      },
    );
  • The actual handler function that executes when list_activity is called. It takes the limit argument, calls client.listActivity(), sanitizes the result with sanitizeActivity(), and returns the JSON-formatted response with error handling.
    async (args) => {
      try {
        const result = await client.listActivity(args.limit);
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(finalizeToolResult(sanitizeActivity(result))),
            },
          ],
        };
      } catch (err) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(finalizeToolResult(handleError(err))),
            },
          ],
        };
      }
    },
  • The client-side listActivity method that performs the actual GraphQL query. It queries the account's activityEntries with fields: id, type, createdAt, card (id, title), and user (name), then extracts and returns the entries list.
    async listActivity(limit = 20): Promise<Record<string, unknown>> {
      const result = await query({
        _root: [
          {
            account: [
              {
                activityEntries: {
                  _args: { limit },
                  _fields: ["id", "type", "createdAt", { card: ["id", "title"] }, { user: ["name"] }],
                },
              },
            ],
          },
        ],
      });
      return { entries: this.extractList(result, "activityEntries") };
    }
  • The sanitizeActivity helper function that sanitizes activity data by applying tagUserText to card titles for security purposes, ensuring user-generated content is properly tagged.
    export function sanitizeActivity(data: Record<string, unknown>): Record<string, unknown> {
      const out = { ...data };
      if (out.cards && typeof out.cards === "object" && !Array.isArray(out.cards)) {
        const cards = out.cards as Record<string, Record<string, unknown>>;
        const tagged: Record<string, Record<string, unknown>> = {};
        for (const [id, card] of Object.entries(cards)) {
          const c = { ...card };
          if (typeof c.title === "string") {
            c.title = tagUserText(c.title as string);
          }
          tagged[id] = c;
        }
        out.cards = tagged;
      }
      return out;
    }
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states 'Show recent activity feed,' which doesn't reveal any behavioral traits such as permissions needed, rate limits, pagination, or what 'recent' means. This is inadequate for a tool with no annotation coverage.

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 ('Show recent activity feed.') with no wasted words. It's appropriately sized and front-loaded, making it easy to scan.

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

Completeness2/5

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

Given the tool's complexity (a list operation with one parameter), no annotations, no output schema, and low schema coverage, the description is incomplete. It lacks details on behavior, return values, and usage context, making it insufficient for effective tool selection.

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?

The input schema has one parameter (limit) with 0% description coverage, and the tool description doesn't mention any parameters. Since there's only one parameter and schema coverage is low, the baseline is 3, as the description doesn't add value beyond the schema but also doesn't mislead.

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

Purpose3/5

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

The description 'Show recent activity feed' states the tool's purpose with a verb ('Show') and resource ('recent activity feed'), but it's vague about what 'activity' entails and doesn't distinguish it from sibling tools like list_cards or list_conversations. It provides a basic function but lacks specificity.

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. With many sibling tools for listing items (e.g., list_cards, list_conversations), the description doesn't clarify the context or exclusions for selecting this tool, leaving usage ambiguous.

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/rangogamedev/codecks-mcp'

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