Graphql
Queries GraphQL APIs using provided schema and parameters to retrieve structured data efficiently.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add htlin222-graphql npx -- -y @trustedskills/htlin222-graphql
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"htlin222-graphql": {
"command": "npx",
"args": [
"-y",
"@trustedskills/htlin222-graphql"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows AI agents to interact with data using GraphQL, a query language for APIs. It enables efficient retrieval of specific data fields from backend systems, avoiding over-fetching and improving performance. The agent can construct queries to request precisely the information needed, making complex data requests simpler.
When to use it
- Fetching user profile details (name, email, location) without retrieving unnecessary order history.
- Building a dashboard displaying aggregated metrics from various sources with specific time ranges.
- Populating a search results page with only the fields relevant to each item (title, description, price).
- Integrating with third-party APIs that expose their data through GraphQL endpoints.
Key capabilities
- GraphQL query construction
- Data retrieval based on specified queries
- Efficient data fetching – retrieving only requested fields
- Integration with GraphQL APIs
Example prompts
- "Get me the name and email of all users who signed up in the last week."
- "Create a query to fetch the total sales for each product category this month."
- "Retrieve the title, description, and price of products matching the keyword 'shoes'."
Tips & gotchas
The agent needs access to a GraphQL endpoint URL. Ensure the provided URL is correct and accessible for successful data retrieval.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.