Skip to main content
Glama
umzcio
by umzcio

tdx-attributes-get

Retrieve custom attribute definitions for TDX components like tickets, assets, or CIs to enable accurate data entry when creating or updating items with custom fields.

Instructions

Get custom attribute definitions for a TDX component (e.g. tickets, assets, CIs). Returns attribute IDs, names, types, and choices needed for creating/updating items with custom attributes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentIdYesComponent ID (e.g. 9=Ticket, 27=Asset, 63=CI, 39=KBArticle, 2=Project)
appIdNoTDX app ID (defaults to env TDX_APP_ID)
associatedTypeIdNoFilter by associated type ID

Implementation Reference

  • The handler function that executes the logic for the 'tdx-attributes-get' tool.
    async (params) => {
      const app = params.appId ?? client.appId;
      const query: Record<string, string> = {};
      if (params.associatedTypeId !== undefined) {
        query.associatedTypeId = String(params.associatedTypeId);
      }
      try {
        const result = await client.get(`/attributes/custom?componentId=${params.componentId}&appId=${app}`, query);
        return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
      } catch (e: unknown) {
        return { content: [{ type: "text", text: String(e) }], isError: true };
      }
    }
  • Input schema definition for the 'tdx-attributes-get' tool.
    {
      componentId: z.number().describe("Component ID (e.g. 9=Ticket, 27=Asset, 63=CI, 39=KBArticle, 2=Project)"),
      appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"),
      associatedTypeId: z.number().optional().describe("Filter by associated type ID"),
    },
  • Registration of the 'tdx-attributes-get' tool on the MCP server.
    server.tool(
      "tdx-attributes-get",
      "Get custom attribute definitions for a TDX component (e.g. tickets, assets, CIs). Returns attribute IDs, names, types, and choices needed for creating/updating items with custom attributes.",
      {
        componentId: z.number().describe("Component ID (e.g. 9=Ticket, 27=Asset, 63=CI, 39=KBArticle, 2=Project)"),
        appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"),
        associatedTypeId: z.number().optional().describe("Filter by associated type ID"),
      },
      async (params) => {
        const app = params.appId ?? client.appId;
        const query: Record<string, string> = {};
        if (params.associatedTypeId !== undefined) {
          query.associatedTypeId = String(params.associatedTypeId);
        }
        try {
          const result = await client.get(`/attributes/custom?componentId=${params.componentId}&appId=${app}`, query);
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (e: unknown) {
          return { content: [{ type: "text", text: String(e) }], isError: true };
        }
      }
    );
Behavior2/5

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

No annotations are provided, so the description carries full burden. It discloses the return format ('attribute IDs, names, types, and choices') which is valuable, but doesn't mention authentication requirements, rate limits, error conditions, or whether this is a read-only operation (though 'Get' implies it). For a tool with no annotations, 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 perfectly concise - two sentences that each earn their place. The first sentence states purpose and scope, the second explains the return value and practical application. No wasted words, well-structured, and front-loaded with the core functionality.

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 no annotations and no output schema, the description provides adequate but incomplete context. It explains what the tool does and what it returns, but doesn't cover authentication, error handling, or operational constraints. For a metadata retrieval tool with 3 parameters, this is minimally viable but leaves important contextual gaps.

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%, so the schema already documents all three parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema. According to guidelines, when schema coverage is high (>80%), the baseline score is 3 even without parameter details in the description.

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?

The description clearly states the action ('Get custom attribute definitions'), specifies the target resource ('for a TDX component'), and provides concrete examples of components ('e.g. tickets, assets, CIs'). It distinguishes itself from sibling tools by focusing on metadata retrieval rather than data manipulation, which is evident from the sibling list containing primarily CRUD operations.

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 context by stating 'needed for creating/updating items with custom attributes', suggesting this tool should be used before those operations. However, it doesn't explicitly state when to use this versus alternatives or provide any exclusion criteria. The guidance is helpful but not comprehensive.

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/umzcio/TeamDynamix-MCP-Connector'

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