When politicians have trouble spinning their own glories, that’s a problem.

So it was bizarre that Hillary Rodham Clinton, asked at a forum in April about her legacy at the State Department, had trouble articulating it. That feeds into a narrative — awaiting her memoir today — that she may have been glamorous as secretary of state but didn’t actually accomplish much.

In fact, that’s dead wrong, for Clinton achieved a great deal and left a hefty legacy — just not the traditional kind. She didn’t craft a coalition of allies, like James Baker, one of the most admired secretaries of state. She didn’t seal a landmark peace agreement, nor is there a recognizable “Hillary Clinton doctrine.”

No, her legacy is different.

For starters, Clinton recognized that our future will be more about Asia than Europe, and she pushed hard to rebalance our relations. She didn’t fully deliver on this “pivot” — generally she was more successful at shaping agendas than delivering on them — but the basic instinct to turn our ship of state to face our Pacific future was sound and overdue.

More fundamentally, Clinton vastly expanded the diplomatic agenda. Diplomats historically focused on “hard” issues, like trade or blowing up stuff, and so it may seem weird and “soft” to fret about women’s rights or economic development.

Yet Clinton understood that impact and leverage in 21st-century diplomacy often come by addressing poverty, the environment, education and family planning.

It’s not that Clinton was a softie. She was often more hawkish than the White House, favoring the surge in Afghanistan (a mistake, I believe) and the arming of moderate Syrian rebel groups (a good call, but one vetoed by President Barack Obama).

Yet she grew truly animated when discussing the new diplomatic agenda. A couple of times I moderated panels during the U.N. General Assembly in which she talked passionately — and bewilderingly, for some of the audience — about civil society, women leaders and agricultural investments.

Pinstriped foreign and prime ministers looked on, happy to be considered important enough to be invited. They listened with increasingly furrowed brows, as if absorbing an alien language, as Clinton brightly spoke about topics such as “the business case for focusing on gender in agricultural development.”

Clinton was relentless about using the spotlight that accompanied her to highlight those who needed it more. At one global forum, she went out of her way to praise Muhammad Yunus, the Nobel Peace Prize-winning entrepreneur of microfinance, who was being persecuted by the Bangladesh prime minister. On trips, she found time to visit shelters for victims of human trafficking or aid groups doing groundbreaking work.

She may hide it, but Clinton is a policy nerd. Ask about microfinance, and she’ll talk your ear off. Mention early childhood interventions, and she will gush about obscure details of a home visitation experiment in Elmira, N.Y., that dramatically improved child outcomes.

The kidnapping of the Nigerian schoolgirls in April was the kind of issue Clinton was out in front of. She understood that educating girls isn’t a frilly “soft” issue, but a way to transform a country to make it less hospitable to extremists. No one argued more presciently that women’s rights are security issues.

“Those who argue that her championing of outreach to women and girls and her elevation of development was not serious miss a central reality of international politics in this century,” notes Nicholas Burns, who was undersecretary of state in the George W. Bush presidency. “These issues are now mainstream globally.”

“I disagree very strongly with those who charge that Hillary Clinton was not successful,” adds Burns, who is now at Harvard’s Kennedy School of Government. “A fair-minded view is that she was, in fact, highly effective.”

Clinton was pioneering not only in the way she expanded the diplomatic agenda, but also in the tools she forged to promote it. She pushed government-to-people relations and people-to- people ties.

Some of this was pioneered in the George W. Bush administration, but Clinton greatly escalated public diplomacy with a rush into social media.

“She was very clear about it: This is the 21st century, and we’re fools if we don’t use it,” recalls Michael McFaul, who became ambassador to Russia in this time. McFaul then had no idea what a tweet was, and there was strong resistance from senior diplomats.

“I said the boss wants to do this,” McFaul recalls, and he ultimately became a champion tweeter.

Today it’s routine to use social media in multiple languages to communicate U.S. diplomatic messages to the world.

So, sure, critics are right that Hillary Rodham Clinton never achieved the kind of landmark peace agreement that would make the first sentence of her obituary. But give her credit: She expanded the diplomatic agenda and adopted new tools to promote it — a truly important legacy.

And, anyway, she may have grander dreams about how her obituary should begin.