Skip to main content
Glama

company_lookup

Look up Indian company profiles and regulatory information from MCA21 and GST portal databases to verify business details and compliance status.

Instructions

Lookup Indian company profile and regulatory info from MCA21, GST portal. Cost: $0.003 USDC. Service: papertrail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
company_nameYes
cinNo
gstinNo

Implementation Reference

  • The `CallToolRequestSchema` handler dynamically resolves tools (including 'company_lookup' if present in the registry) by name and delegates execution to `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 generic `callTool` function that performs the actual network request for tools fetched from the registry.
    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();
    }
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds useful context about cost ('Cost: $0.003 USDC') and service provider ('Service: papertrail'), which helps the agent understand operational aspects. However, it doesn't describe rate limits, authentication needs, response format, or error conditions, leaving important behavioral traits unspecified.

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 appropriately concise with three short phrases that each add value: the core functionality, cost information, and service provider. It's front-loaded with the main purpose. However, the cost and service details could be better integrated into the main sentence for slightly improved flow.

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 moderate complexity (3 parameters, no output schema, no annotations), the description is minimally adequate. It covers the core purpose and adds operational context (cost/service), but lacks parameter explanations, usage guidelines, and behavioral details like response format. It meets basic requirements but has clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description provides no information about parameters beyond what the schema already shows. With 0% schema description coverage and 3 parameters (company_name, cin, gstin), the description fails to explain what these parameters mean, their formats, or how they interact. The baseline would be 3 if schema coverage were high, but here it must compensate and doesn't.

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: 'Lookup Indian company profile and regulatory info from MCA21, GST portal.' It specifies the verb ('Lookup'), resource ('Indian company profile and regulatory info'), and data sources. However, it doesn't explicitly differentiate from sibling tools like 'gst_intelligence' or 'check_compliance', which prevents a perfect score.

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 details, but doesn't indicate scenarios, prerequisites, or exclusions. With sibling tools like 'gst_intelligence' and 'check_compliance' that might overlap, this lack of differentiation is a significant gap.

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