logoalt Hacker News

aschobeltoday at 4:57 PM2 repliesview on HN

mine just is the gh cli. is the advantage of graphql that they can compose a query that would take multiple cli invocations?


Replies

mattkricktoday at 5:08 PM

CLI still has the possibility of being a little more token efficient, at worst it may use graphql behind the scenes.

For our company, we advertise the graphql schema to bots and they can one-shot whatever task they're trying to do. I've found that it's so good that I cancelled building an an MCP server and any skill. Just a well documented GQL schema. It's pretty remarkable.

show 4 replies
sockbottoday at 5:14 PM

no the advantage of graphql is that the caller can limit the response to only the information that they need. in a REST API the caller has to filter out the extraneous information. using LLMs to do the filtering uses up context window

show 1 reply