Skip to main content
Glama
Moe03

Google Maps MCP Server

by Moe03

get_posts

Retrieve all posts via the Google Maps MCP Server to access structured data and enhance functionality for geocoding, place search, and routing.

Instructions

Retrieves all posts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that logs the number of posts and returns all posts as a formatted JSON string in the tool response format.
    async function handleGetPosts() { console.error(`Handling get_posts request, found ${posts.length} posts`); return { content: [{ type: "text", text: JSON.stringify(posts, null, 2) }], isError: false, }; }
  • The Tool object defining the metadata, description, and empty input schema for the get_posts tool.
    const GET_POSTS_TOOL: Tool = { name: "get_posts", description: "Retrieves all posts.", inputSchema: { type: "object", properties: {}, required: [], }, };
  • src/index.ts:77-82 (registration)
    The array where GET_POSTS_TOOL is registered alongside other tools, used in the ListTools response.
    const SIMPLE_TOOLS = [ GET_WEATHER_TOOL, ADD_POST_TOOL, GET_POSTS_TOOL, DELETE_POST_TOOL, ] as const;
  • src/index.ts:191-193 (registration)
    The switch case in the CallToolRequestSchema handler that registers and invokes the get_posts handler.
    case "get_posts": { return await handleGetPosts(); }

Other Tools

Related 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/Moe03/mcp-hello-world'

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