agentleFS
PinMeToPinMeTo/pinmeto-location-mcp/.claude/skills/add-tool/SKILL.md

add-tool

Skill15 starsChanged 4 months agoMITView on GitHub

Step-by-step checklist for adding a new tool to this PinMeTo MCP server, covering naming, schemas, handler wiring, and registration. Use when adding or modifying an MCP tool.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-provider.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • PydanticSkill

    add-provider

    Add a new inference provider to genai-prices, including provider data, matching, usage extractors, update automation, cassettes, agentic checks, generated artifacts, and Python/JavaScript/Go parity tests. Use for a new provider, not a new model on an existing provider.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create tool registration function in appropriate module under src/tools/

    line 8
  2. Very specific:

    Add response_format: ResponseFormatSchema to input schema

    line 11
  3. Very specific:

    Use formatContent() helper to format response based on response_format

    line 14
  4. Very specific:

    Add appropriate tool annotations — readOnlyHint: true for read-only tools, which is every tool currently in this server

    line 17
  5. Distinctive:

    Follow the patterns in the existing tool modules rather than inventing new shapes — read a neighbouring tool in the same directory first.

    line 20

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Adding a New Tool

  1. Create tool registration function in appropriate module under src/tools/
  2. Name the tool following the pinmeto_{action}_{network}_{resource} pattern (see AGENTS.md)
  3. Define Zod schema for input validation
  4. Add response_format: ResponseFormatSchema to input schema
  5. Define or reuse output schema from src/schemas/output.ts
  6. Implement handler using server.makePinMeToRequest() or server.makePaginatedPinMeToRequest()
  7. Use formatContent() helper to format response based on response_format
  8. Return both content (text) and structuredContent (typed data) from handler
  9. For insights tools, use aggregateInsights() and finalizeInsights() helpers
  10. Add appropriate tool annotations — readOnlyHint: true for read-only tools, which is every tool currently in this server
  11. Register tool in createMcpServer() function in src/mcp_server.ts

Follow the patterns in the existing tool modules rather than inventing new shapes — read a neighbouring tool in the same directory first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.