Skip to content
TrustMeshVyantraa

Guides

Agent registration

Agent identity, permitted tools, credentials and status.

Fields

FieldNotes
nameUnique per environment. Letters, digits, - and _, starting with a letter.
ownerThe accountable person or team.
environmentproduction, staging or development. Available to policies as agent.environment.
framework, runtimeDescriptive, e.g. LangGraph on an ECS service.
risk_levellow…critical, set by a person. Available as agent.risk_level.
toolsList of {tool, actions} grants.
bash
POST /v1/agents
{ "name": "BillingAgent", "owner": "Billing team", "environment": "production", "framework": "LangGraph",
  "risk_level": "high", "tools": [{ "tool": "refunds", "actions": ["process"] }] }

Permitted tools

Grants are the registry layer of least privilege. A request for a tool that is not granted is denied with TOOL_NOT_PERMITTED (or ACTION_NOT_PERMITTED) before any policy runs. Change grants with PUT /v1/agents/{id}/tools; every change is audited.

Credentials

POST /v1/agents/{id}/credentials returns a secret of the form tmag_<12 hex>_<random> once. TrustMesh stores only an HMAC. Revoke with DELETE /v1/agents/{id}/credentials/{prefix}. Agent credentials are accepted only by /v1/runtime/*.

Status

  • active — requests are evaluated.
  • disabled — every request is denied with AGENT_DISABLED.
  • quarantined — set automatically by a quarantine rule; every request is denied with AGENT_QUARANTINED until a Security Analyst, Administrator or Owner releases it with a reason (POST /v1/agents/{id}/status).