Skip to main content
Glama

Get Tag Registry

get_tag_registry

Retrieve the local tag taxonomy including definitions, hero tags, and lane-tag mappings for Codecks project management. Filter by system or discipline categories as needed.

Instructions

Get the local tag taxonomy (definitions, hero tags, lane-tag mappings). No auth needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoFilter to system or discipline tags only

Implementation Reference

  • The main handler function for get_tag_registry tool. Filters tags by optional category parameter and returns tag definitions, count, hero_tags, and lane_tags in a formatted response.
    async (args) => {
      let tags = TAGS;
      if (args.category) {
        tags = tags.filter((t) => t.category === args.category);
      }
    
      const tagDicts = tags.map((t) => ({
        name: t.name,
        display_name: t.displayName,
        category: t.category,
        description: t.description,
      }));
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(
              finalizeToolResult({
                tags: tagDicts,
                count: tagDicts.length,
                hero_tags: [...HERO_TAGS],
                lane_tags: LANE_TAGS,
              }),
            ),
          },
        ],
      };
    },
  • Tool registration using server.registerTool() with name 'get_tag_registry', including title, description, input schema, and async handler callback.
    export function registerRegistryTools(server: McpServer): void {
      server.registerTool(
        "get_tag_registry",
        {
          title: "Get Tag Registry",
          description:
            "Get the local tag taxonomy (definitions, hero tags, lane-tag mappings). No auth needed.",
          inputSchema: z.object({
            category: z
              .enum(["system", "discipline"])
              .optional()
              .describe("Filter to system or discipline tags only"),
          }),
        },
        async (args) => {
          let tags = TAGS;
          if (args.category) {
            tags = tags.filter((t) => t.category === args.category);
          }
    
          const tagDicts = tags.map((t) => ({
            name: t.name,
            display_name: t.displayName,
            category: t.category,
            description: t.description,
          }));
    
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(
                  finalizeToolResult({
                    tags: tagDicts,
                    count: tagDicts.length,
                    hero_tags: [...HERO_TAGS],
                    lane_tags: LANE_TAGS,
                  }),
                ),
              },
            ],
          };
        },
      );
  • Input schema definition using zod with an optional 'category' parameter that accepts 'system' or 'discipline' enum values for filtering tags.
    {
      title: "Get Tag Registry",
      description:
        "Get the local tag taxonomy (definitions, hero tags, lane-tag mappings). No auth needed.",
      inputSchema: z.object({
        category: z
          .enum(["system", "discipline"])
          .optional()
          .describe("Filter to system or discipline tags only"),
      }),
  • Supporting data structures: TagDefinition interface, TAGS array with 8 tag definitions, HERO_TAGS set, and LANE_TAGS mapping used by the get_tag_registry handler.
    interface TagDefinition {
      name: string;
      displayName: string;
      category: "system" | "discipline";
      description: string;
    }
    
    const TAGS: TagDefinition[] = [
      {
        name: "feature",
        displayName: "Feature",
        category: "system",
        description: "New functionality",
      },
      {
        name: "bug",
        displayName: "Bug",
        category: "system",
        description: "Defect to fix",
      },
      {
        name: "chore",
        displayName: "Chore",
        category: "system",
        description: "Maintenance task",
      },
      {
        name: "spike",
        displayName: "Spike",
        category: "system",
        description: "Research/investigation",
      },
      {
        name: "code",
        displayName: "Code",
        category: "discipline",
        description: "Programming work",
      },
      {
        name: "design",
        displayName: "Design",
        category: "discipline",
        description: "Visual/UX design",
      },
      {
        name: "art",
        displayName: "Art",
        category: "discipline",
        description: "Art assets",
      },
      {
        name: "audio",
        displayName: "Audio",
        category: "discipline",
        description: "Sound/music",
      },
    ];
    
    const HERO_TAGS = new Set(["feature", "bug", "chore", "spike"]);
    const LANE_TAGS: Record<string, string[]> = {
      code: ["code"],
      design: ["design"],
      art: ["art"],
      audio: ["audio"],
    };
  • The finalizeToolResult helper function that wraps the handler's response in a contract envelope with schema_version and ok status fields.
    export function finalizeToolResult(result: unknown): unknown {
      if (result !== null && typeof result === "object" && !Array.isArray(result)) {
        const dict = result as Record<string, unknown>;
        const normalized = ensureContractDict(dict);
    
        if (normalized.ok === false) return normalized;
    
        if (config.mcpResponseMode === "envelope") {
          const data = { ...normalized };
          delete data.ok;
          delete data.schema_version;
          return {
            ok: true,
            schema_version: CONTRACT_SCHEMA_VERSION,
            data,
          };
        }
    
        return normalized;
      }
    
      if (config.mcpResponseMode === "envelope") {
        return {
          ok: true,
          schema_version: CONTRACT_SCHEMA_VERSION,
          data: result,
        };
      }
    
      return result;
    }
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses the 'No auth needed' behavioral trait, which is valuable. However, it doesn't describe return format, pagination, error conditions, or whether this is a read-only operation (implied by 'Get' but not explicit). Some behavioral context is missing for a tool with potential complexity in taxonomy structure.

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 concise sentences with zero waste. First sentence states purpose and scope, second provides critical behavioral context ('No auth needed'). Every word earns its place, and information is front-loaded appropriately.

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?

For a read-only tool with no annotations, no output schema, and 100% schema coverage, the description is adequate but has gaps. It covers purpose and one behavioral trait, but doesn't explain return values or potential complexities in the taxonomy structure. Given the sibling tools include multiple registry/listing tools, more contextual differentiation would be helpful.

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 description coverage is 100% with one parameter fully documented in the schema. The description adds no parameter-specific information beyond what the schema provides. The baseline is 3 when schema does the heavy lifting, but the description doesn't compensate with additional context about parameter usage or effects.

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 ('local tag taxonomy') with specific components (definitions, hero tags, lane-tag mappings). It distinguishes from sibling 'list_tags' by focusing on taxonomy/metadata rather than listing tag instances. However, it doesn't explicitly contrast with 'get_lane_registry' which might overlap in lane-tag mappings.

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

Usage Guidelines3/5

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

The description implies usage for retrieving taxonomy/metadata rather than tag instances (contrasted with 'list_tags'), but doesn't explicitly state when to use vs. alternatives like 'get_lane_registry' or 'get_pm_playbook'. The 'No auth needed' provides some context but not comprehensive guidance on tool selection.

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