API reference

MCP methods: initialize, tools/list, tools/call

Three JSON-RPC methods drive the Credicorp MCP server. initialize negotiates the protocol revision and returns server identity; tools/list returns the tools and their input schemas; tools/call invokes a named tool with arguments. A compliant client sends them in that order; you can also drive them by hand with curl.

2 min read

initializeNegotiate
tools/listDiscover
tools/callInvoke

initialize

The handshake. Returns protocolVersion (2025-06-18), server name/version (Credicorp v1.0.0) and capabilities.

{ "jsonrpc":"2.0","id":1,"method":"initialize","params":{} }

tools/list

Returns each tool with its full input schema — the authoritative source for arguments.

{ "jsonrpc":"2.0","id":2,"method":"tools/list","params":{} }

tools/call

Invokes a tool by name with an arguments object.

{ "jsonrpc":"2.0","id":3,"method":"tools/call","params":{ "name":"ListProducts","arguments":{} } }

Or just read the card

A plain GET on the endpoint returns the server card — protocol, identity and a tool summary — without any JSON-RPC.

Frequently asked questions

Which method returns the tool input schemas?

tools/list. The GET server card gives names and descriptions; tools/list gives the full schemas.

Do I have to call initialize first?

A compliant MCP client does, to negotiate the protocol. For a quick manual test you can call tools/list or tools/call directly with curl.

Funding for UK limited companies

Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.