Skip to content
Community forum

Invoking a new entity's tool returns 404

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

We uploaded a shipment schema. POST /ai/v1/tools/search_shipment/invoke returns 404, and GET /ai/v1/tools doesn't list it. It doesn't list db_count_by either, even though the agent uses it.

Link

1 answer

Accepted answer
Accepted answer

The tool list is cached. After uploading or changing schemas, call POST /ai/v1/tools/refresh to regenerate it, then invoke again. /invoke returns 404 for any name that isn't in your domain's current tool list.

Check the name as well. Tools are named {operation}_{namespace}_{type}, and only an entity in the default namespace gets the short {operation}_{type} form, so a shipment in a logistics namespace is search_logistics_shipment.

db_count_by is expected to be missing. GET /ai/v1/tools lists only the schema-generated CRUD tools. The analytics, export and chart tools (db_stats, db_count_by, export_to_csv, render_chart and the rest) are available to the agent on every turn and show up in tool_calls when used, but they aren't listed and can't be run through /invoke.

Supero DX teamSupero team answered
Link

Your answer

Invoking a new entity's tool returns 404 | Supero Community