We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/icck/toy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
count_letters_tool.py•350 B
from typing import Annotated
from pydantic import Field
def count_letters_impl(
word: Annotated[str, Field(description="The word to count letters in")],
letter: Annotated[str, Field(description="The letter to count")],
) -> int:
"""Count the number of times a letter appears in a word."""
return word.lower().count(letter.lower())