{"note":"POST JSON arguments to /api/tools/<name>. The same tools are served over MCP at /api/mcp.","tools":[{"name":"kg_search","description":"Semantic search over the Play Pen knowledge graph (fly connectome tools, datasets, tardigrade pipeline stages, capabilities, tasks, questions, commits, agent messages). Returns node addresses (fcg:type/slug) with scores. Use this first to find what to look at.","input_schema":{"type":"object","properties":{"query":{"type":"string","description":"What to look for, in plain words."},"type":{"type":"string","description":"Optional node type filter, e.g. tool, capability, task."},"status":{"type":"string","enum":["built","in_progress","needed","blocked","external"],"description":"Optional status filter."},"k":{"type":"integer","description":"Max results (default 8)."}},"required":["query"]},"writes":false},{"name":"kg_get_node","description":"Get one node by address (fcg:type/slug), with all its links in and out.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"Node address, e.g. fcg:tool/navis."}},"required":["id"]},"writes":false},{"name":"kg_list","description":"List nodes of one type, optionally filtered by status. Types: project, species, dataset, stage, tool, capability, task, commit, pr, doc, agent, person, question, message, topic.","input_schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type."},"status":{"type":"string","enum":["built","in_progress","needed","blocked","external"],"description":"Optional status filter."}},"required":["type"]},"writes":false},{"name":"kg_status","description":"What has been built and what still needs building: counts and lists by status for capabilities, tasks, pipeline stages and questions (or one type).","input_schema":{"type":"object","properties":{"type":{"type":"string","description":"Optional: limit to one node type."}}},"writes":false},{"name":"kg_worklog","description":"Proof of work: task completions with timestamps and commits, pushes, and the git history (commits and merges with times).","input_schema":{"type":"object","properties":{"limit":{"type":"integer","description":"How many recent commits to include (default 20)."}}},"writes":false},{"name":"kg_add_node","description":"Add or update a node in the graph (for example a newly needed capability, a question, or a finished piece of work). Returns its address.","input_schema":{"type":"object","properties":{"type":{"type":"string","description":"Node type from the FCO vocabulary."},"label":{"type":"string","description":"Short name."},"status":{"type":"string","enum":["built","in_progress","needed","blocked","external"],"description":"Defaults to needed."},"description":{"type":"string","description":"One or two sentences."},"slug":{"type":"string","description":"Optional stable slug for the address."}},"required":["type","label"]},"writes":true},{"name":"kg_add_edge","description":"Link two existing nodes with an FCO edge type (partOf, dependsOn, serves, reads, hosts, ofSpecies, implements, completedBy, deliveredIn, documentedIn, uses, needs, analogOf, blocks, askedOf, ownedBy, sentBy, sentTo, postedIn, subscribes, about).","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"Source address."},"type":{"type":"string","description":"Edge type."},"to":{"type":"string","description":"Target address."}},"required":["from","type","to"]},"writes":true},{"name":"agent_register","description":"Register an agent with the connector, with the capabilities it offers and topics it listens to.","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Agent name."},"description":{"type":"string","description":"What it does."},"capabilities":{"type":"array","items":{"type":"string"}},"topics":{"type":"array","items":{"type":"string"}},"endpoint":{"type":"string","description":"Optional URL where it can be reached."}},"required":["name"]},"writes":true},{"name":"agent_send","description":"Send a message between agents. One-to-one: to='agent'. One-to-many: to=['a','b']. Many-to-many: topic='name' (all subscribers). Optionally link it to graph nodes with about=[addresses].","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"Sending agent."},"to":{"description":"One agent name, or a list of names.","anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"topic":{"type":"string","description":"Topic for many-to-many."},"body":{"type":"string","description":"Message text."},"about":{"type":"array","items":{"type":"string"},"description":"Node addresses the message is about."}},"required":["from","body"]},"writes":true},{"name":"agent_subscribe","description":"Subscribe an agent to a topic (many-to-many channel).","input_schema":{"type":"object","properties":{"agent":{"type":"string","description":"Agent name."},"topic":{"type":"string","description":"Topic name."}},"required":["agent","topic"]},"writes":true},{"name":"agent_inbox","description":"Read messages for an agent (sent or received), or for a topic, optionally only after a timestamp.","input_schema":{"type":"object","properties":{"agent":{"type":"string","description":"Agent name."},"topic":{"type":"string","description":"Topic name."},"since":{"type":"string","description":"ISO timestamp."}}},"writes":false},{"name":"agent_list","description":"List registered agents, their capabilities and topics.","input_schema":{"type":"object","properties":{}},"writes":false},{"name":"ds_list","description":"List the connectome datasets loaded on this server (tardigrade mock until Tardimap shares data, C. elegans connectome, FlyWire and hemibrain annotations) with species, size, source and why each is a starter dataset.","input_schema":{"type":"object","properties":{}},"writes":false},{"name":"ds_summary","description":"Summary of one dataset: counts by super class, class, neurotransmitter, side and pipeline stage, number of cell types, and the most connected neurons.","input_schema":{"type":"object","properties":{"dataset":{"type":"string","description":"Dataset id from ds_list.","enum":["tardigrade-mock","celegans-hermaphrodite","flywire-fafb","hemibrain"]}},"required":["dataset"]},"writes":false},{"name":"ds_search_neurons","description":"Find neurons in a dataset by any annotation (name, cell type, class, super class, neurotransmitter, side, hemilineage, region). All words must match. Returns the total and up to `limit` neurons.","input_schema":{"type":"object","properties":{"dataset":{"type":"string","description":"Dataset id from ds_list.","enum":["tardigrade-mock","celegans-hermaphrodite","flywire-fafb","hemibrain"]},"query":{"type":"string","description":"Words to match, e.g. 'MBON right' or 'AVA'. Empty lists everything."},"limit":{"type":"integer","description":"Max neurons (default 20, max 500)."},"offset":{"type":"integer","description":"Skip this many matches."}},"required":["dataset"]},"writes":false},{"name":"ds_neuron","description":"One neuron with all its annotations and, where the dataset has connectivity (C. elegans), its strongest upstream and downstream partners with weights.","input_schema":{"type":"object","properties":{"dataset":{"type":"string","description":"Dataset id from ds_list.","enum":["tardigrade-mock","celegans-hermaphrodite","flywire-fafb","hemibrain"]},"id":{"type":"string","description":"Neuron id, e.g. AVAL or a FlyWire root id."}},"required":["dataset","id"]},"writes":false}]}