query_context
Retrieve structured knowledge entries for Klever smart contract development with filtering by type, tags, and contract type. Returns matched entries with scores and pagination.
Instructions
Search the Klever VM knowledge base for smart contract development context. Returns structured JSON with matching entries, scores, and pagination. Use this for precise filtering by type or tags; use search_documentation for human-readable "how do I..." answers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Free-text search query. Use Klever-specific terms for best results (e.g. "storage mapper SingleValueMapper", "payable endpoint KLV", "deploy contract testnet"). | |
| types | No | Filter results by context type. Omit to search all types. Common combinations: ["code_example", "documentation"] for learning, ["error_pattern"] for debugging, ["security_tip", "best_practice"] for reviews. | |
| tags | No | Filter by tags (e.g. ["storage", "mapper"], ["tokens", "KLV"], ["events"]). Tags are matched with OR logic — any matching tag includes the entry. | |
| contractType | No | Filter by contract type (e.g. "token", "nft", "defi", "dao"). Only returns entries tagged for this contract category. | |
| limit | No | Maximum number of results to return (1-100). Default: 10. | |
| offset | No | Number of results to skip for pagination. Use with limit to page through results. Default: 0. |