Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_cosmos_proposal

Retrieve governance proposal details for Cosmos-based blockchains to analyze voting status, parameters, and decision outcomes.

Instructions

Get specific governance proposal details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockchainYesBlockchain name
proposalIdYesProposal ID
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • Tool schema and definition for get_cosmos_proposal, defining input parameters and description.
    {
      name: 'get_cosmos_proposal',
      description: 'Get specific governance proposal details',
      inputSchema: {
        type: 'object',
        properties: {
          blockchain: {
            type: 'string',
            description: 'Blockchain name',
          },
          proposalId: {
            type: 'number',
            description: 'Proposal ID',
          },
          network: {
            type: 'string',
            enum: ['mainnet', 'testnet'],
            description: 'Network type (defaults to mainnet)',
          },
        },
        required: ['blockchain', 'proposalId'],
      },
    },
  • Handler execution logic within handleCosmosTool switch statement for get_cosmos_proposal.
    case 'get_cosmos_proposal': {
      const blockchain = args?.blockchain as string;
      const proposalId = args?.proposalId as number;
      const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet';
    
      const result = await cosmosService.getProposal(blockchain, proposalId, network);
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2),
          },
        ],
        isError: !result.success,
      };
    }
  • Core helper function in CosmosService that performs the HTTP GET request to retrieve the specific proposal details from the Cosmos Gov REST API.
    async getProposal(
      blockchain: string,
      proposalId: number,
      network: 'mainnet' | 'testnet' = 'mainnet'
    ): Promise<EndpointResponse> {
      try {
        const baseUrl = this.getRestUrl(blockchain, network);
        const url = `${baseUrl}/cosmos/gov/v1beta1/proposals/${proposalId}`;
    
        return this.fetchRest(url);
      } catch (error) {
        return {
          success: false,
          error: error instanceof Error ? error.message : 'Failed to get Cosmos proposal',
        };
      }
    }
  • src/index.ts:88-101 (registration)
    Registration of all tools including cosmos tools (via registerCosmosHandlers) into the MCP server's tools list, provided via ListToolsRequestHandler.
    const tools: Tool[] = [
      ...registerBlockchainHandlers(server, blockchainService),
      ...registerDomainHandlers(server, domainResolver),
      ...registerTransactionHandlers(server, advancedBlockchain),
      ...registerTokenHandlers(server, advancedBlockchain),
      ...registerMultichainHandlers(server, advancedBlockchain),
      ...registerContractHandlers(server, advancedBlockchain),
      ...registerUtilityHandlers(server, advancedBlockchain),
      ...registerEndpointHandlers(server, endpointManager),
      ...registerSolanaHandlers(server, solanaService),
      ...registerCosmosHandlers(server, cosmosService),
      ...registerSuiHandlers(server, suiService),
      ...registerDocsHandlers(server, docsManager),
    ];
Behavior2/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 states the tool retrieves details but doesn't describe what 'details' include, potential errors (e.g., invalid proposalId), rate limits, authentication needs, or response format. This is a significant gap for a read operation with no output schema.

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, efficient sentence with zero waste. It's front-loaded with the core action and resource, making it easy to parse quickly. Every word earns its place without redundancy.

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 no annotations and no output schema, the description is incomplete for a tool with 3 parameters. It doesn't explain what 'details' are returned, error conditions, or behavioral traits. For a read tool in a complex domain (blockchain governance), more context is needed to guide effective use.

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%, so the schema already documents all parameters (blockchain, proposalId, network). The description adds no additional meaning beyond implying 'specific' relates to proposalId. Baseline 3 is appropriate as the schema does the heavy lifting, but the description doesn't enhance parameter understanding.

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 'Get specific governance proposal details' clearly states the verb ('Get') and resource ('governance proposal details'), making the purpose understandable. It distinguishes from sibling tools like 'get_cosmos_proposals' (plural) by specifying 'specific' proposal, though it doesn't explicitly contrast with other Cosmos-related tools like 'get_cosmos_proposal_votes'.

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 doesn't mention prerequisites, compare with siblings like 'get_cosmos_proposals' (for listing) or 'get_cosmos_proposal_votes' (for vote details), or specify scenarios where this tool is appropriate. Usage is implied but not articulated.

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/buildwithgrove/mcp-pocket'

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