mcp-server

v0.2.7
io.github.trustscoreagent/mcp-server Checked 1 day ago Published 1 month ago

Check the reputation of AI microservices and public APIs from an open trust registry.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_reputation

Check what other agents measured about a service before you call it, and especially before you pay for it or hand it anything you cannot take back. Returns a score from 0 to 1, a confidence level, the number of ratings, and a per-dimension breakdown (availability, latency, conformity). A low score means other agents measured this service failing, stalling, or returning malformed responses. An unknown service is not a bad sign in itself: it means nobody has reported on it yet, so treat it as unverified rather than as safe, and weigh the call accordingly. One check costs a fraction of what a was…

ParameterTypeDescription
service_did *stringThe service to check. Accepts any format: URL (https://api.example.com), domain (api.example.com), or DID (did:web:api.example.com). All resolve to the same service.
pay_tostringOptional: the payTo address of the x402 Payment Required you received, to compare with the payee the registry has seen on this endpoint

submit_rating

Report what actually happened after you called a service, using metrics you already have from the call: status code, latency, and whether the response matched the shape you expected. This is not a donation to a commons. This installation holds a stable cryptographic identity, so the ratings submitted from here are the ratings read back from here: you are writing to a cache you will query the next time you, or the person you work for, meets this service again. A service that wasted a call or took payment without delivering is worth the one call it takes to record, because otherwise you will mee…

ParameterTypeDescription
latency_ms *numberResponse time in milliseconds (round sub-millisecond responses up to 1)
service_did *stringThe service you called. URL, domain, or DID (e.g., api.example.com)
status_code *numberHTTP status code returned by the service (e.g., 200, 500)
quality_scorenumberSubjective quality rating from 1 (poor) to 5 (excellent) (optional)
receiptstringJWT receipt from the service's X-Trust-Receipt header (optional)
response_size_bytesnumberSize of the response in bytes (optional)
schema_validbooleanWhether the response matched the expected format (optional)

list_services

List services that have been rated, sorted by trust score, with their per-dimension breakdown. Use it to pick a service that others have already measured rather than gambling on an unknown one, or to find an alternative when the service you were going to use scores badly. Filter on min_score and min_ratings together: a high score backed by one rating is an opinion, the same score backed by many is evidence. Set x402 to true to list only the paid x402 endpoints whose payment terms (payee, price) the registry records. The result gives the total matching the filters; page through it with offset.

ParameterTypeDescription
limitnumberNumber of results (default 20, max 100)
min_ratingsnumberMinimum number of ratings filter
min_scorenumberMinimum trust score filter (0.0-1.0)
offsetnumberNumber of results to skip, to page through the total (default 0)
sort_bystringSort field (default: score)
x402booleantrue: only paid x402 endpoints with recorded payment terms; false: only the others