Skip to main content
Glama

Verify Store

verify_store

Verify an ecommerce merchant's trust status in the GenGEO registry using their domain.

Instructions

Check whether an ecommerce merchant is verified in the GenGEO trust registry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesMerchant domain, e.g. example.com

Implementation Reference

  • Async handler function that verifies a store by calling the GenGEO verify API. Cleans the domain, fetches from GENGEO_VERIFY_ENDPOINT, and returns structured JSON indicating verified status, eligibility, and decision.
    async ({ domain }) => {
      const cleanDomain = domain
        .replace(/^https?:\/\//, "")
        .replace(/^www\./, "")
        .split("/")[0]
        .trim()
        .toLowerCase();
    
      try {
        const url = `${GENGEO_VERIFY_ENDPOINT}?domain=${encodeURIComponent(cleanDomain)}`;
        const response = await fetch(url);
    
        if (!response.ok) {
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify({
                  domain: cleanDomain,
                  verified: false,
                  status: "lookup_error",
                  eligible_for_ai_agent_purchase: "unknown",
                  decision: "verification_unavailable",
                  reason: "GenGEO verification lookup was unavailable."
                })
              }
            ]
          };
        }
    
        const data = await response.json();
    
        const verified = data.verified === true;
        const active = data.status === "active" || data.status === "verified";
    
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({
                domain: cleanDomain,
                verified,
                status: verified && active ? "active" : "not_found",
                eligible_for_ai_agent_purchase: verified && active ? "yes" : "unknown",
                decision: verified && active ? "verified" : "verification_required",
                registry: "GenGEO"
              })
            }
          ]
        };
      } catch (error) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({
                domain: cleanDomain,
                verified: false,
                status: "lookup_error",
                eligible_for_ai_agent_purchase: "unknown",
                decision: "verification_unavailable",
                reason: "GenGEO verification lookup could not be completed."
              })
            }
          ]
        };
      }
    }
  • Input schema for 'verify_store' tool - requires a 'domain' string (min 3 chars) described as the merchant domain. Uses Zod for validation.
    {
      title: "Verify Store",
      description:
        "Check whether an ecommerce merchant is verified in the GenGEO trust registry.",
      inputSchema: {
        domain: z.string().min(3).describe("Merchant domain, e.g. example.com")
      }
  • mcp/server.js:14-92 (registration)
    Registration of the 'verify_store' tool with the MCP server using server.registerTool(), binding name, schema, and handler together.
    server.registerTool(
      "verify_store",
      {
        title: "Verify Store",
        description:
          "Check whether an ecommerce merchant is verified in the GenGEO trust registry.",
        inputSchema: {
          domain: z.string().min(3).describe("Merchant domain, e.g. example.com")
        }
      },
      async ({ domain }) => {
        const cleanDomain = domain
          .replace(/^https?:\/\//, "")
          .replace(/^www\./, "")
          .split("/")[0]
          .trim()
          .toLowerCase();
    
        try {
          const url = `${GENGEO_VERIFY_ENDPOINT}?domain=${encodeURIComponent(cleanDomain)}`;
          const response = await fetch(url);
    
          if (!response.ok) {
            return {
              content: [
                {
                  type: "text",
                  text: JSON.stringify({
                    domain: cleanDomain,
                    verified: false,
                    status: "lookup_error",
                    eligible_for_ai_agent_purchase: "unknown",
                    decision: "verification_unavailable",
                    reason: "GenGEO verification lookup was unavailable."
                  })
                }
              ]
            };
          }
    
          const data = await response.json();
    
          const verified = data.verified === true;
          const active = data.status === "active" || data.status === "verified";
    
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify({
                  domain: cleanDomain,
                  verified,
                  status: verified && active ? "active" : "not_found",
                  eligible_for_ai_agent_purchase: verified && active ? "yes" : "unknown",
                  decision: verified && active ? "verified" : "verification_required",
                  registry: "GenGEO"
                })
              }
            ]
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify({
                  domain: cleanDomain,
                  verified: false,
                  status: "lookup_error",
                  eligible_for_ai_agent_purchase: "unknown",
                  decision: "verification_unavailable",
                  reason: "GenGEO verification lookup could not be completed."
                })
              }
            ]
          };
        }
      }
    );
Behavior2/5

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

No annotations are provided, so the description must fully cover behavioral traits. It only says 'Check', suggesting a read operation, but does not disclose side effects, authentication needs, rate limits, or return behavior. The description is insufficient for a tool with no annotations.

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, well-front-loaded sentence with no wasted words. It efficiently communicates the tool's primary function.

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 low complexity (1 parameter, no annotations, no output schema), the description covers the core purpose and parameter. However, it lacks behavioral transparency and usage guidance, making it incomplete for an agent to fully understand the tool's behavior.

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% for the single parameter (domain). The description does not add any additional meaning beyond the schema's description, so it meets the baseline of 3.

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 verb 'Check' and the resource 'ecommerce merchant verification in the GenGEO trust registry', making the tool's purpose unambiguous. No sibling tools exist, so differentiation is not needed.

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 checking merchant verification but provides no explicit guidance on when to use or avoid it. Since there are no sibling tools, the lack of alternatives is acceptable, but no conditions or prerequisites are mentioned.

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/warwickwood-cell/gengeo-agent-registry'

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