Skip to main content
Glama

twining_query

Search blackboard entries using semantic or keyword queries to find relevant information for development tasks.

Instructions

Semantic search across blackboard entries. Uses embeddings when available, falls back to keyword search. Returns entries ranked by relevance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language query
entry_typesNoOptional type filter
limitNoMax results (default: 10)

Implementation Reference

  • The tool 'twining_query' is registered here. It calls 'engine.query' to perform the actual logic.
    // twining_query — Semantic search across blackboard entries
    server.registerTool(
      "twining_query",
      {
        description:
          "Semantic search across blackboard entries. Uses embeddings when available, falls back to keyword search. Returns entries ranked by relevance.",
        inputSchema: {
          query: z.string().describe("Natural language query"),
          entry_types: z
            .array(z.string())
            .optional()
            .describe("Optional type filter"),
          limit: z
            .number()
            .optional()
            .describe("Max results (default: 10)"),
        },
      },
      async (args) => {
        try {
          const result = await engine.query(args.query, {
            entry_types: args.entry_types,
            limit: args.limit,
          });
          return toolResult(result);
        } catch (e) {
          return toolError(
            e instanceof Error ? e.message : "Unknown error",
            "INTERNAL_ERROR",
          );
        }
      },
    );

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/daveangulo/twining-mcp'

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