Skip to main content
Glama

test_connection

Verify connectivity to the NIH RePORTER API by testing the connection, ensuring seamless data integration for querying NIH-funded research projects and publications.

Instructions

Test the connection to the NIH RePORTER API

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "title": "test_connectionArguments", "type": "object" }

Implementation Reference

  • The main handler function for the 'test_connection' tool. It is decorated with @mcp.tool(), which registers it as an MCP tool. The function tests connectivity to the NIH RePORTER API by attempting to fetch a single project.
    @mcp.tool() async def test_connection() -> str: """Test the connection to the NIH RePORTER API""" try: # Try to fetch a single project as a test result = await api_client.get_projects({"limit": 1}) return "Successfully connected to NIH RePORTER API" except Exception as e: logger.error(f"Connection test failed: {e}") return f"Connection test failed: {str(e)}"

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/jbdamask/mcp-nih-reporter'

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