Skip to main content
Glama

hyperd.governance.summarize

Summarize a DAO governance proposal from Snapshot or Tally. Get structured impact analysis including who benefits, who pays, and recommended position.

Instructions

Summarize a DAO governance proposal (Snapshot or Tally URL). Returns structured impact analysis: who benefits, who pays, recommended position. LLM-summarized. Costs $0.10 in USDC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
proposal_urlYesSnapshot or Tally proposal URL

Implementation Reference

  • src/server.ts:336-344 (registration)
    Registration of the 'hyperd.governance.summarize' tool via server.tool() with name, description, input schema (proposal_url), and handler.
    // hyperd.governance.summarize — DAO proposal LLM summary ($0.10)
    server.tool(
      "hyperd.governance.summarize",
      "Summarize a DAO governance proposal (Snapshot or Tally URL). Returns structured impact analysis: who benefits, who pays, recommended position. LLM-summarized. Costs $0.10 in USDC.",
      {
        proposal_url: z.string().describe("Snapshot or Tally proposal URL"),
      },
      async (args) => asText(await paidGet("/api/governance/summarize", args)),
    );
  • Handler function for the tool: calls paidGet('/api/governance/summarize') passing the args (proposal_url query param), then wraps result with asText().
    async (args) => asText(await paidGet("/api/governance/summarize", args)),
  • Input schema: single required string parameter 'proposal_url' described as 'Snapshot or Tally proposal URL'.
    {
      proposal_url: z.string().describe("Snapshot or Tally proposal URL"),
  • Helper function paidGet() that constructs the URL, appends query params from args, and initiates the paid x402 request. Used by the tool handler.
    async function paidGet(
      path: string,
      query: Record<string, string | number | boolean | undefined>,
    ): Promise<unknown> {
      if (!httpClient) {
        throw new Error(WALLET_NOT_CONFIGURED_MSG);
      }
    
      const url = new URL(`${API_BASE}${path}`);
      for (const [k, v] of Object.entries(query)) {
        if (v !== undefined && v !== "" && v !== null) url.searchParams.set(k, String(v));
      }
      return paidRequest("GET", url, undefined);
    }
  • Helper function asText() that wraps JSON response into MCP content block format.
    function asText(data: unknown) {
      return { content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }] };
    }
Behavior4/5

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

No annotations provided, but description adds valuable behavioral context: it is LLM-summarized and costs $0.10 USDC. This helps the agent understand side effects and resource consumption. However, it doesn't mention latency or error handling.

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?

Two concise sentences front-load the purpose and add critical details (cost, LLM usage, output structure). No wasted words.

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?

No output schema, but description adequately describes the return structure. Mentions cost and LLM usage. Could be improved by noting any limits on proposal size or response time, but sufficient for a simple tool.

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 coverage is 100% for the single parameter, and the description in the schema already explains it. The tool description adds no new semantic detail about the parameter beyond the schema.

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?

Clearly states the tool summarizes DAO governance proposals from Snapshot or Tally URLs. Specifies structured output (impact analysis). Distinguishes itself from sibling tools by being governance-proposal specific.

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?

Description clearly states what the tool does but does not explicitly specify when to use it over alternatives or when not to use it. No guidance on prerequisites or exclusions.

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

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