Skip to main content
Glama

gst_intelligence

Retrieve GST registration details and filing intelligence for Indian businesses using a 15-character GSTIN number to verify compliance and financial status.

Instructions

Get GST registration details and filing intelligence for a GSTIN. Cost: $0.005 USDC. Service: papertrail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gstinYes15-character GSTIN

Implementation Reference

  • The tool 'gst_intelligence' (along with all other tools) is handled dynamically in the CallToolRequestSchema request handler, which fetches tools from a remote registry and executes them via callTool.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      const { name, arguments: args } = request.params;
    
      let registry: Registry;
      try {
        registry = await fetchRegistry();
      } catch (error) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({ error: "Failed to fetch tool registry", detail: String(error) }),
            },
          ],
        };
      }
    
      const tool = registry.tools.find((t) => t.name === name);
      if (!tool) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({
                error: `Tool '${name}' not found`,
                available_tools: registry.tools.map((t) => t.name),
              }),
            },
          ],
        };
      }
    
      try {
        const result = await callTool(tool, args as Record<string, unknown>);
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(result, null, 2),
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({
                error: "Tool call failed",
                tool: name,
                service: tool.service,
                detail: String(error),
              }),
            },
          ],
        };
      }
    });
  • The callTool function performs the actual HTTP request to the endpoint associated with the selected tool.
    async function callTool(
      tool: RegistryTool,
      args: Record<string, unknown>
    ): Promise<unknown> {
      const headers: Record<string, string> = {
        "Content-Type": "application/json",
      };
    
      if (X_PAYMENT_HEADER) {
        headers["X-PAYMENT"] = X_PAYMENT_HEADER;
      }
    
      if (DEV_MODE) {
        headers["X-Dev-Mode"] = "true";
      }
    
      const response = await fetch(tool.endpoint, {
        method: tool.method,
        headers,
        body: JSON.stringify(args),
      });
    
      if (response.status === 402) {
        const detail = await response.json().catch(() => ({}));
        return {
          error: "Payment Required",
          amount_usdc: tool.cost_usdc,
          service: tool.service,
          instructions:
            "Set X_PAYMENT_HEADER env var with a valid x402 payment proof, or set DEV_MODE=true for testing.",
          detail,
        };
      }
    
      if (!response.ok) {
        const text = await response.text().catch(() => "Unknown error");
        return {
          error: `HTTP ${response.status}`,
          service: tool.service,
          detail: text,
        };
      }
    
      return await response.json();
    }
Behavior2/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 adds some context: cost ('$0.005 USDC') and service provider ('papertrail'), which are useful. However, it lacks critical behavioral details such as rate limits, authentication needs, error handling, or what 'filing intelligence' entails, making it insufficient for a tool with no annotation support.

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?

The description is concise and front-loaded, stating the core purpose in the first clause. The additional cost and service details are relevant but could be more integrated. It avoids unnecessary fluff, but the structure could be slightly improved by linking the extra information more seamlessly to the tool's function.

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 complexity of retrieving GST details and the lack of annotations and output schema, the description is incomplete. It doesn't explain what 'filing intelligence' includes, the format of returned data, potential errors, or usage limits. For a tool with no structured output or behavioral annotations, this leaves significant gaps for an agent to use it effectively.

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 100% description coverage, with the parameter 'gstin' documented as a '15-character GSTIN.' The description doesn't add any meaning beyond this, such as format examples or validation rules. Since schema coverage is high, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

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 tool's purpose: 'Get GST registration details and filing intelligence for a GSTIN.' It specifies the verb ('Get') and resource ('GST registration details and filing intelligence'), making the function understandable. However, it doesn't differentiate from sibling tools, as none appear to be related to GST data, so a 4 is appropriate rather than a 5.

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?

The description provides no guidance on when to use this tool versus alternatives. It mentions cost and service provider details, but these don't help an agent decide between this and other tools. There's no mention of prerequisites, constraints, or comparison with similar tools, leaving usage context unclear.

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/yantrix-ai/yantrix-mcp'

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