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
| Name | Required | Description | Default |
|---|---|---|---|
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
- src/biocontext_kb/core/opentargets/__init__.py:2-2 (registration)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
- src/biocontext_kb/core/_server.py:3-6 (registration)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.", )