Skip to main content
Glama

extract_landscape

Read-only

Analyze competitive landscapes by querying 6 sources including YC startups, GitHub, and Product Hunt to identify who's building similar projects, funding status, and traction.

Instructions

Composite intelligence tool. Given a project idea or keyword, simultaneously queries YC startups, GitHub repos, HN, Reddit, Product Hunt, and package registries to answer: Who is building this? Is it funded? What's getting traction? Returns a unified 6-source timestamped landscape report.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYesYour project idea or keyword e.g. 'mcp server' or 'cashflow prediction'
max_lengthNo

Implementation Reference

  • The handler function for 'extract_landscape' tool, which aggregates data from YC, GitHub, Hacker News, and package registries.
    async ({ topic, max_length }) => {
      const perSection = Math.floor((max_length ?? 8000) / 4);
    
      const [ycResult, repoResult, hnResult, pkgResult] = await Promise.allSettled([
        ycAdapter({ url: `https://www.ycombinator.com/companies?query=${encodeURIComponent(topic)}`, maxLength: perSection }),
        repoSearchAdapter({ url: topic, maxLength: perSection }),
        hackerNewsAdapter({ url: `https://hn.algolia.com/api/v1/search?query=${encodeURIComponent(topic)}&tags=story&hitsPerPage=15`, maxLength: perSection }),
        packageTrendsAdapter({ url: topic, maxLength: perSection }),
      ]);
    
      const section = (label: string, result: PromiseSettledResult<{ raw: string; content_date: string | null; freshness_confidence: string }>) =>
        result.status === "fulfilled"
          ? `## ${label}\n${result.value.raw}`
          : `## ${label}\n[Error: ${(result as PromiseRejectedResult).reason}]`;
    
      const combined = [
        `# Landscape Report: "${topic}"`,
        `Generated: ${new Date().toISOString()}`,
        "",
        section("🚀 YC Startups in this space", ycResult),
        section("📦 Top GitHub repos", repoResult),
        section("💬 HN sentiment (last month)", hnResult),
        section("📊 Package ecosystem", pkgResult),
      ].join("\n\n");
    
      return { content: [{ type: "text", text: combined }] };
    }
  • Input schema definition for the 'extract_landscape' tool.
    inputSchema: z.object({
      topic: z.string().describe("Your project idea or keyword e.g. 'mcp server' or 'cashflow prediction'"),
      max_length: z.number().optional().default(10000),
    }),
  • src/server.ts:167-177 (registration)
    Registration of the 'extract_landscape' tool in src/server.ts.
    server.registerTool(
      "extract_landscape",
      {
        description:
          "Composite intelligence tool. Given a project idea or keyword, simultaneously queries YC startups, GitHub repos, HN, Reddit, Product Hunt, and package registries to answer: Who is building this? Is it funded? What's getting traction? Returns a unified 6-source timestamped landscape report.",
        inputSchema: z.object({
          topic: z.string().describe("Your project idea or keyword e.g. 'mcp server' or 'cashflow prediction'"),
          max_length: z.number().optional().default(10000),
        }),
        annotations: { readOnlyHint: true, openWorldHint: true },
      },
Behavior4/5

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

Annotations indicate readOnlyHint=true and openWorldHint=true, which the description aligns with by describing a querying operation without implying mutations. The description adds valuable context beyond annotations: it specifies the 6 sources queried, the types of questions answered, and that it returns a 'unified 6-source timestamped landscape report,' which helps the agent understand the tool's scope and output format.

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 front-loaded and efficient: it starts with the tool's composite nature, lists the sources, specifies the questions answered, and describes the output in a single, well-structured sentence. Every part earns its place without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (querying 6 sources) and lack of output schema, the description does a good job of explaining what the tool does and what it returns. However, it could be more complete by detailing the report structure or any limitations (e.g., rate limits, data freshness). With annotations covering safety and openness, the description is largely adequate but has minor 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 50% (one of two parameters has a description). The description mentions 'project idea or keyword,' which aligns with the 'topic' parameter but doesn't add details beyond the schema's description. It doesn't mention the 'max_length' parameter at all. Since schema coverage is moderate, the description provides minimal additional parameter semantics, meeting the baseline.

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 tool's purpose: it's a 'composite intelligence tool' that 'simultaneously queries YC startups, GitHub repos, HN, Reddit, Product Hunt, and package registries' to answer specific questions about who is building something, funding status, and traction. It distinguishes itself from siblings by specifying the 6 sources it queries and the unified report it returns, unlike more focused sibling tools like extract_yc or extract_github.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool: 'Given a project idea or keyword' to get a comprehensive landscape report. It implies usage for broad research rather than specific source queries, but it doesn't explicitly state when not to use it or name alternatives among the sibling tools (e.g., using extract_yc for YC-only data).

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/PrinceGabriel-lgtm/freshcontext-mcp'

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