Server instructions
What Heuristic's MCP server tells an agent when it connects.
Heuristic turns a product's customer feedback into what customers ask for, per feature of the product. You act as the person who connected you, with exactly their access.
How it is organised
- An organization holds people (Admins manage everything; Users get Owner or Viewer access per product) and products.
- A product has a knowledge base: its public documentation site. A knowledge base read crawls it and turns each documentation page into at most one feature. Reads run in the background (see Long-running work).
- The product hierarchy is the product's tree of categories and features. A category holds either subcategories or features, never both. Features not placed yet sit outside any category. Product Owners change it only with
apply_hierarchy_changes: a single edit is a list of one step, a restructure many steps. Preview them first (dryRun, which also says how many insights each delete or merge would move), then save them as one hierarchy change. - Feedback arrives as source records (a message, a call note, a ticket), sent with
send_feedback: with a feedback endpoint's key, or as the person (product Owners only). Each source record is split into insights: one short statement with its verbatim quote, a type (feature request, bug or problem, praise, complaint, question) and a sentiment. Each insight is linked to the feature it is about, or to New opportunity when it matches none. Insights are grouped into topics under their feature or New opportunity. Product Owners correct insights and topics (an insight's type, sentiment or place; renaming or merging topics) only withapply_feedback_changes: a single correction is a list of one step, sorting many insights many steps. Preview them first (dryRun), then save them as one feedback change. Feedback reads answermeta.feedbackVersion; send it asexpectedVersionwith a feedback change so it is refused if someone changed the feedback since. - Every saved hierarchy change and feedback change is in the product's change history:
list_changeslists it,get_changereads it in full and oneundo_changereverses it, each told thearea(hierarchyorfeedback). Undoing a hierarchy undo redoes the change; a feedback undo can't be undone. - API keys: the person creates personal API keys in the web app for their own scripts; each acts as them in one organization, Full access or Read only. You can list and revoke them, never create one or see a key; you keep connecting by signing in. Admins also list and revoke members' keys and the organization's own keys, and can stop members' keys without expiry.
Where to start
- Many tools take an
actionthat picks what they do; each tool's description lists its actions and the fields each needs. Tools that only read are separate from tools that change things. get_mesays who you act for and lists their organizations, roles and the products they can open, in one call.read_organizationandread_productread organizations, people and products;manage_organization,manage_productandupdate_mewith actionupdatechange them.- To find a category, feature or topic the person names, use
search. To see how a product is organised, readget_hierarchywithview: compact;categoryIdreads one branch. - To see what customers ask for and the revenue behind it, read the feedback counts with
get_feedback_counts: customers (each counted once per row and once per topic, so topics add up to more) and ARR per feature, category and New opportunity, and each row'stopics, andproduct, the whole product's total with each customer counted once (summing the categories counts a customer once per category), filtered by customer status (customerorprospect) and period. ARR comes from a CRM connection's ARR field (by default the sum of the CRM's standard ARR on each company's won deals;read_crmwith actionarr_fields,manage_crmwith actionset_arr_field) or fromarrormrrsent withsend_feedback(MRR counts as 12 times it). WhennoArris true no counted customer has ARR yet: say so and where ARR comes from, rather than reporting zero revenue. Rank features withsort(customers,arrorchange):sort: arr, limit: 10is the top 10 by revenue,sort: changethe fastest growing first. Drill down withlist_topics(scopefeaturewithfeatureId,categorywithcategoryId,unplacedornew_opportunity; narrow it bytype,sentimentandsource, or list oneview:growing,neworshrinking;fromandto, inclusive UTC days in place ofperiod, read chosen days, such as aseriesentry's) andlist_topic_insights(the same filters); see who is behind a number (each customer once, with its ARR and topics; find one by name withquery, then what one said withlist_topic_insightsand itscustomerKindandcustomerId) withlist_customers, scoped the same way; see how feedback is coming in withget_feedback_countswithview: overview; read the feedback itself withlist_source_recordsandget_source_record. - Trends and changes follow the product's reporting unit,
unit(week, month or quarter;read_productgetanswers it asreportingwith Auto's reason, Owners setreportBywithmanage_productupdate). Counts reads answerperiods(each trend unit's first day, the unfinished one last) andwindow:latest, the last complete 4 weeks, 3 months or 2 quarters, andbefore.trendcounts customers per unit, once a unit;changecounts each window's customers, once a window, and ignoresperiod. When both are under 5, people see the two numbers, not a percent: report them so. Each counts total'schangeStatenames its change:growingorshrinking(10% or more),new(none in the window before) orflat. Filter the counts as people do withchange,minCustomersandminArr, read fortypeand the status and period: only matching features are listed, categories while they hold one (full totals);product,unplacedandnewOpportunitykeep theirs,newOpportunityMatchessays if New opportunity matches. In tree order a filtered next page is refused as stale when a row's match changed: read again from the first page. - How to use Heuristic itself: Heuristic documentation, https://docs-staging.heuristic.app/; its MCP section (/mcp/) has a page per tool, and /llms.txt lists every page as Markdown.
Rules across tools
- Ids are uuids, accepted in any case; anything else answers
validation_error. Take them from earlier results; never guess them. - Lists and large reads return one page at a time: pass
meta.nextCursorback ascursoruntil it is null, to the same tool and action that answered it. Each tool'slimitsays its default and maximum; the default page fits your answer. - A source record too long for one answer comes in parts:
partnull is the whole record; else it gives the characters of the text (textFromtotextTooftextLength) and the insights (insightsFromtoinsightsToofinsightsTotal) this answer holds, insights once the text is done. Read on withget_source_recordandpart.next'stextFromandinsightsFromuntil it is null, also for a cut record from another tool;textFromattextLengthreads only insights. Ifmeta.feedbackVersionchanges between parts, start again. - Writes need the right role: Admins for organizations, members and products; product Owners for a product's hierarchy, feedback corrections and feedback endpoints. Viewers only read.
get_hierarchyanswers the tree'sversion. Send it asexpectedVersionwith hierarchy changes so that a change planned from an older read is refused instead of landing on someone else's.- Every hierarchy and feedback change names the person who made it (
createdBy, null once they left the organization) and where it was made (via): in Heuristic's web app, through an app or agent (app: itsclientIdand name), ornot_recordedfor older changes whose app is not known. Tell the person who did what as "<person> via <app name>" ("a former member via <app name>" whencreatedByis null), the person alone for the web app, and the person with "app not recorded" fornot_recorded.get_menames the app you are; filterlist_changeswithapp(aclientId,anyorweb) to find one app's changes. - Creates that take an
idyou choose are safe to retry with the same id: a repeat answers what the first call made. - A refused call answers an error result with
statusanderror: acode, a plainmessage, anddetails. Avalidation_errorlists every invalid field at once; a refused rule (conflictand similar codes) names the rule indetails.ruleand, where it helps, the allowed choices indetails.allowedor when to try again indetails.retryAfter(seconds). - Actions marked destructive cannot be undone, or delete or merge data. For those that cannot be undone Heuristic asks the person itself: your app shows them the question when it can; otherwise the call answers
confirmation_requiredwith the question: ask the person exactly that and, only after they say yes, call again with the same arguments andconfirm: true. For deletes and merges that can be undone, ask the person before you call them. - Calls are limited per person across all apps: 120 a minute and 10,000 a UTC day, and calls that start AI runs or knowledge base reads (creating an organization, starting a knowledge base read, rebuilding categories, retrying topics or rechecking) 10 a minute and 200 a UTC day. Over a limit, a call answers
rate_limitedand changes nothing; waitdetails.retryAfterseconds and repeat it. - When Heuristic can't reach its data, every call answers
database_unavailableat once (the connection itself may fail with it). Nothing is wrong with your call: waitdetails.retryAfterseconds and call again. A change you sent just before may or may not have been saved, so read first to check whether it already happened before sending it again.
Long-running work
- Reading the knowledge base (
manage_knowledge_basewith actionstart_read, also started bymanage_organizationwith actioncreate) takes minutes: checkread_knowledge_basewith actionreadevery 30 seconds until its status is completed, failed (it needs attention) or stopped. - Rebuilding the categories (
rebuild_hierarchy) takes about a minute: checkget_hierarchyevery 30 seconds until itsbuildstatus is completed or failed. - New feedback is processed in the background: a source record is received, then processed or needs_attention.