{"at":"2026-11-23T05:10:35.763Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:10:36.465Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:10:36.565Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:10:37.307Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"ava","version":"0.1.0"}}}}
{"at":"2026-11-23T05:10:37.307Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:10:37.307Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:10:37.312Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":false,"readOnlyHint":false},"description":"Load a dataset and return its schema. Replaces the previously loaded dataset. Use inline CSV or JSON for small pasted data, or a file path for larger local files.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"source":{"oneOf":[{"properties":{"csv":{"minLength":1,"type":"string"},"type":{"const":"csv","type":"string"}},"required":["type","csv"],"type":"object"},{"properties":{"data":{"items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"minItems":1,"type":"array"},"type":{"const":"json","type":"string"}},"required":["type","data"],"type":"object"},{"properties":{"text":{"minLength":1,"type":"string"},"type":{"const":"text","type":"string"}},"required":["type","text"],"type":"object"},{"properties":{"path":{"minLength":1,"type":"string"},"type":{"enum":["csv-file","json-file","parquet","excel"],"type":"string"}},"required":["type","path"],"type":"object"}]}},"required":["source"],"type":"object"},"name":"ava_load_data","title":"Load data into AVA"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Return table names, columns, and types for the loaded dataset.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"ava_schema","title":"Inspect the loaded dataset"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Compute column statistics (row count, nulls, distinct, min, max, mean, median) for the dataset.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"metrics":{"description":"Statistics to compute. Omit for AVA defaults.","items":{"enum":["row_count","null_count","distinct_count","min","max","mean","median"],"type":"string"},"type":"array"}},"type":"object"},"name":"ava_profile","title":"Profile the loaded dataset"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Execute one read-only SELECT statement with DuckDB semantics. Aggregate, filter, and sort in SQL so the result stays small.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sql":{"description":"A single SELECT statement, using table names from ava_schema.","minLength":1,"type":"string"}},"required":["sql"],"type":"object"},"name":"ava_query","title":"Run SQL against the dataset"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Ask a question about the loaded dataset. AVA writes and executes the SQL, then summarizes the result. Requires OPENAI_API_KEY (and optionally OPENAI_MODEL / OPENAI_BASE_URL) in the server environment.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"includeSummary":{"description":"Whether to write a prose answer. Defaults to true.","type":"boolean"},"question":{"description":"The question to answer from the data.","minLength":1,"type":"string"}},"required":["question"],"type":"object"},"name":"ava_analyze","title":"Answer a question in natural language"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Translate a question into SQL without running it, so a human can review the statement first.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"question":{"minLength":1,"type":"string"}},"required":["question"],"type":"object"},"name":"ava_translate","title":"Translate a question to SQL"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Suggest questions worth asking about the loaded dataset. Requires a model configuration.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"count":{"maximum":10,"minimum":1,"type":"integer"}},"type":"object"},"name":"ava_suggest","title":"Suggest questions about the data"},{"annotations":{"idempotentHint":true,"readOnlyHint":true},"description":"Recommend a chart for rows from ava_query or ava_analyze. Returns a GPT-Vis config, which AVA renders to standalone HTML with the `viz --spec` CLI command.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"data":{"description":"Rows from a previous tool call.","items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"minItems":1,"type":"array"},"question":{"description":"The question the rows answer.","minLength":1,"type":"string"}},"required":["question","data"],"type":"object"},"name":"ava_visualize","title":"Build a chart for a result"}]}}}
