# WAR-CRAFT: Refining Web API Recommendations through Requirement Auditing

DevFeed: [WAR-CRAFT: Refining Web API Recommendations through Requirement Auditing](<https://devfeed.tech/articles/war-craft-refining-web-api-recommendations-through-requirement-auditing-115052.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00564>)

Author: Zishuo Xu, Dezhong Yao, Zhiqiang Xu

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [audit](<https://devfeed.tech/topics/audit.md>), [AI Foundation Models](<https://devfeed.tech/topics/ai-foundation-models.md>), [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [auditing](<https://devfeed.tech/tags/auditing.md>), [audits](<https://devfeed.tech/tags/audits.md>), [capabilities](<https://devfeed.tech/tags/capabilities.md>), [catalog](<https://devfeed.tech/tags/catalog.md>), [code](<https://devfeed.tech/tags/code.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [functional](<https://devfeed.tech/tags/functional.md>), [generative](<https://devfeed.tech/tags/generative.md>), [llm](<https://devfeed.tech/tags/llm.md>), [recommendation](<https://devfeed.tech/tags/recommendation.md>), [recommendations](<https://devfeed.tech/tags/recommendations.md>), [redundancy](<https://devfeed.tech/tags/redundancy.md>), [request](<https://devfeed.tech/tags/request.md>), [resolver](<https://devfeed.tech/tags/resolver.md>), [upstream](<https://devfeed.tech/tags/upstream.md>), [web](<https://devfeed.tech/tags/web.md>), [web-api](<https://devfeed.tech/tags/web-api.md>)

## AI overview

WAR-CRAFT refines a frozen Web API recommender by checking its output against provider documentation and request requirements. An LLM jointly removes unsupported or subsumed APIs, then a requirement audit identifies gaps; a fine-tuned, catalog-constrained Resolver proposes an API or abstains, and an independent documentation check admits only supported proposals. On ProgrammableWeb across seven upstream recommenders, mean SetF1 rose from 0.558 to 0.644, exceeding the strongest of five refinement baselines (62.5%). Functional redundancy roughly halved, from 0.127 to 0.065, while mean functional coverage stayed unchanged. Gains varied by recommender type (+2.2 points for generative recommenders and +18.2 for fixed-cutoff rankers); WAR-CRAFT also outperformed output truncation at matched set sizes.

## Source excerpt

arXiv:2611.00564v1 Announce Type: new Abstract: Web API recommenders return a set of APIs for a mashup request but do not check it against provider documentation, the main public evidence of an API's capabilities. The set can therefore contain unsupported or redundant APIs and miss requested capabilities. Filling every apparent gap does not fix this, because a gap may already be served, may not need its own API, or may have no documented provider. We study post-recommendation refinement, which revises a frozen recommender's output using only the request, the catalog, and provider documentation. We propose WAR-CRAFT, which treats refinement as three decisions. An LLM removes unsupported or subsumed APIs by judging candidates jointly, then audits the remaining set against a requirement checklist derived from the request. For each uncovered requirement, a fine-tuned catalog-constrained Resolver proposes a catalog API or abstains, and an independent documentation check admits only supported proposals. On ProgrammableWeb with 7 heterogeneous upstream recommenders, WAR-CRAFT raises mean SetF1 from 0.558 to 0.644, above the strongest of 5 refinement baselines (62.5%), and roughly halves functional redundancy (0.127 to 0.065) without changing mean functional coverage. Gains range from +2.2 points on generative recommenders to +18.2 on fixed-cutoff rankers. At matched set sizes, WAR-CRAFT still outperforms truncating the upstream output, so the gain is not explained by set-size calibration alone. Our code is available at https://github.com/ZsXu-enrico/WAR-CRAFT.