Skip to main content
Glama
biocontext-ai

BioContextAI Knowledgebase MCP

Official

bc_get_open_targets_query_examples

Retrieve example GraphQL queries for biomedical data exploration using the Open Targets API, demonstrating common use cases like target information, drug discovery, and disease associations.

Instructions

Retrieve example GraphQL queries for the Open Targets API. Examples demonstrate common use cases.

Returns: dict: Example queries mapped by category (informationForTarget, drugsForTarget, associatedDiseases, etc.) with GraphQL query strings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the tool 'bc_get_open_targets_query_examples'. It returns a dictionary containing example GraphQL queries for various use cases on the Open Targets API, such as target information, associated diseases, drugs, etc.
    @core_mcp.tool() def get_open_targets_query_examples() -> dict: """Retrieve example GraphQL queries for the Open Targets API. Examples demonstrate common use cases. Returns: dict: Example queries mapped by category (informationForTarget, drugsForTarget, associatedDiseases, etc.) with GraphQL query strings. """ return EXAMPLE_QUERIES
  • Import statement that loads the handler function, triggering its registration via the @core_mcp.tool() decorator.
    from ._get_open_targets_query_examples import get_open_targets_query_examples
  • Initialization of the FastMCP server with prefix 'BC', which prefixes all tool names (e.g., 'bc_' + function_name).
    core_mcp = FastMCP( # type: ignore "BC", instructions="Provides access to biomedical knowledge bases.", )

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/biocontext-ai/knowledgebase-mcp'

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